mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-22 19:57:51 +08:00
feat(messaging): allow messaging services to hook into FCM (#4087)
* feat(messaging): hook into FCM * chore(messaging): update event name
This commit is contained in:
@@ -107,6 +107,8 @@
|
||||
}
|
||||
#endif
|
||||
|
||||
[[NSNotificationCenter defaultCenter] postNotificationName:@"RNFBMessagingDidReceiveRemoteNotification" object:userInfo];
|
||||
|
||||
if (userInfo[@"gcm.message_id"]) {
|
||||
if ([UIApplication sharedApplication].applicationState == UIApplicationStateBackground) {
|
||||
// TODO add support in a later version for calling completion handler directly from JS when user JS code complete
|
||||
|
||||
Reference in New Issue
Block a user