RNFIRMessaging.h 806 Bytes
Newer Older
Libin Lu's avatar
init  
Libin Lu committed
1 2 3

#import <UIKit/UIKit.h>

4
#import <FirebaseCore/FIRApp.h>
Libin Lu's avatar
init  
Libin Lu committed
5

Libin Lu's avatar
Libin Lu committed
6
#import <React/RCTBridgeModule.h>
Libin Lu's avatar
init  
Libin Lu committed
7

Libin Lu's avatar
Libin Lu committed
8
@import UserNotifications;
Libin Lu's avatar
init  
Libin Lu committed
9

10
@interface RNFIRMessaging : NSObject <RCTBridgeModule>
Libin Lu's avatar
init  
Libin Lu committed
11 12 13

@property (nonatomic, assign) bool connectedToFCM;

Libin Lu's avatar
Libin Lu committed
14 15 16 17 18 19 20
#if !TARGET_OS_TV
+ (void)didReceiveRemoteNotification:(nonnull NSDictionary *)userInfo fetchCompletionHandler:(nonnull void (^)(UIBackgroundFetchResult))completionHandler;
+ (void)didReceiveLocalNotification:(nonnull UILocalNotification *)notification;
+ (void)didReceiveNotificationResponse:(nonnull UNNotificationResponse *)response withCompletionHandler:(nonnull void (^)())completionHandler;
+ (void)willPresentNotification:(nonnull UNNotification *)notification withCompletionHandler:(nonnull void (^)(UNNotificationPresentationOptions))completionHandler;
#endif

Libin Lu's avatar
init  
Libin Lu committed
21
@end
22