Commit 7d867f81 authored by Ali Al Amine's avatar Ali Al Amine Committed by Libin Lu

IOS: Added identification for which action was taken in case there wa… (#328)

* IOS: Added identification for which action was taken in case there was many

* Changed the action identifier key to _actionIdentifier
parent c0282348
...@@ -156,6 +156,9 @@ RCT_EXPORT_MODULE() ...@@ -156,6 +156,9 @@ RCT_EXPORT_MODULE()
NSMutableDictionary* data = [[NSMutableDictionary alloc] initWithDictionary: response.notification.request.content.userInfo]; NSMutableDictionary* data = [[NSMutableDictionary alloc] initWithDictionary: response.notification.request.content.userInfo];
[data setValue:@"notification_response" forKey:@"_notificationType"]; [data setValue:@"notification_response" forKey:@"_notificationType"];
[data setValue:@YES forKey:@"opened_from_tray"]; [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}]; [[NSNotificationCenter defaultCenter] postNotificationName:FCMNotificationReceived object:self userInfo:@{@"data": data, @"completionHandler": completionHandler}];
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment