[fcm] Fix iOS completion handlers

This commit is contained in:
Chris Bianca 2018-02-09 07:28:59 +00:00
parent 4ff20007f5
commit e2f56ac93c
1 changed files with 1 additions and 4 deletions

View File

@ -116,9 +116,6 @@ RCT_EXPORT_MODULE()
[_callbackHandlers setObject:[completionHandler copy] forKey:message[@"messageId"]];
[RNFirebaseUtil sendJSEvent:self name:MESSAGING_MESSAGE_RECEIVED body:message];
// TODO: Change this to your preferred presentation option
completionHandler(UNNotificationPresentationOptionNone);
}
// Handle notification messages after display notification is tapped by the user.
@ -451,6 +448,7 @@ RCT_EXPORT_METHOD(finishRemoteNotification: (NSString*) messageId
if (!message[@"messageId"]) {
message[@"messageId"] = [[NSUUID UUID] UUIDString];
}
message[@"messageType"] = messageType;
message[@"data"] = data;
message[@"notification"] = notif;
@ -474,4 +472,3 @@ RCT_EXPORT_METHOD(finishRemoteNotification: (NSString*) messageId
@implementation RNFirebaseMessaging
@end
#endif