[messaging][notifications] Move all notifications from messaging to notifications

This commit is contained in:
Chris Bianca
2018-02-18 17:09:13 +00:00
parent a244f17853
commit 831eec82f7
5 changed files with 235 additions and 194 deletions

View File

@@ -12,7 +12,7 @@
#import <React/RCTBundleURLProvider.h>
#import <React/RCTRootView.h>
#import <Firebase.h>
#import <RNFirebaseMessaging.h>
#import <RNFirebaseNotifications.h>
@implementation AppDelegate
@@ -39,12 +39,12 @@
}
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo {
[[RNFirebaseMessaging instance] didReceiveRemoteNotification:userInfo];
[[RNFirebaseNotifications instance] didReceiveRemoteNotification:userInfo];
}
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo
fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler {
[[RNFirebaseMessaging instance] didReceiveRemoteNotification:userInfo fetchCompletionHandler:completionHandler];
[[RNFirebaseNotifications instance] didReceiveRemoteNotification:userInfo fetchCompletionHandler:completionHandler];
}
@end