From 7d867f81bc6ea6e3b7acae919dd4a6f86f74aa06 Mon Sep 17 00:00:00 2001 From: Ali Al Amine Date: Fri, 24 Feb 2017 18:09:53 +0200 Subject: [PATCH] =?UTF-8?q?IOS:=20Added=20identification=20for=20which=20a?= =?UTF-8?q?ction=20was=20taken=20in=20case=20there=20wa=E2=80=A6=20(#328)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * IOS: Added identification for which action was taken in case there was many * Changed the action identifier key to _actionIdentifier --- ios/RNFIRMessaging.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ios/RNFIRMessaging.m b/ios/RNFIRMessaging.m index f3600c9..24f41fd 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}]; } -- 2.26.2