diff --git a/ios/RNFIRMessaging.m b/ios/RNFIRMessaging.m index f3600c9e11285a9f285680d43be6aa346d1b6d92..24f41fd5ecb9376d46da42f78e9955dc62e03cec 100644 --- a/ios/RNFIRMessaging.m +++ b/ios/RNFIRMessaging.m @@ -156,6 +156,9 @@ RCT_EXPORT_MODULE() NSMutableDictionary* data = [[NSMutableDictionary alloc] initWithDictionary: response.notification.request.content.userInfo]; [data setValue:@"notification_response" forKey:@"_notificationType"]; [data setValue:@YES forKey:@"opened_from_tray"]; + if (response.actionIdentifier) { + [data setValue:response.actionIdentifier forKey:@"_actionIdentifier"]; + } [[NSNotificationCenter defaultCenter] postNotificationName:FCMNotificationReceived object:self userInfo:@{@"data": data, @"completionHandler": completionHandler}]; }