2017-03-09 15:26:28 +00:00
|
|
|
#ifndef RNFirebaseMessaging_h
|
|
|
|
#define RNFirebaseMessaging_h
|
2017-08-11 15:07:32 +00:00
|
|
|
#import <Foundation/Foundation.h>
|
2017-03-09 15:26:28 +00:00
|
|
|
|
2017-05-30 12:20:42 +00:00
|
|
|
#if __has_include(<FirebaseMessaging/FirebaseMessaging.h>)
|
2017-05-30 07:26:40 +00:00
|
|
|
#import <FirebaseMessaging/FirebaseMessaging.h>
|
2017-08-11 15:07:32 +00:00
|
|
|
#import <React/RCTBridgeModule.h>
|
2017-05-31 14:53:08 +00:00
|
|
|
#import <React/RCTEventEmitter.h>
|
2017-05-05 08:46:22 +00:00
|
|
|
|
2017-05-30 07:26:40 +00:00
|
|
|
@interface RNFirebaseMessaging : RCTEventEmitter<RCTBridgeModule, FIRMessagingDelegate>
|
2017-03-09 15:26:28 +00:00
|
|
|
|
2018-02-02 12:05:51 +00:00
|
|
|
+ (_Nonnull instancetype)instance;
|
2018-02-02 08:40:48 +00:00
|
|
|
|
2018-02-05 17:45:08 +00:00
|
|
|
@property _Nullable RCTPromiseRejectBlock permissionRejecter;
|
|
|
|
@property _Nullable RCTPromiseResolveBlock permissionResolver;
|
|
|
|
|
2018-02-02 12:05:51 +00:00
|
|
|
#if !TARGET_OS_TV
|
2018-02-22 15:52:24 +00:00
|
|
|
- (void)didReceiveRemoteNotification:(nonnull NSDictionary *)userInfo;
|
|
|
|
- (void)didRegisterUserNotificationSettings:(nonnull UIUserNotificationSettings *)notificationSettings;
|
2017-03-09 15:26:28 +00:00
|
|
|
#endif
|
2017-03-21 15:11:07 +00:00
|
|
|
|
|
|
|
@end
|
2017-05-30 12:20:42 +00:00
|
|
|
|
|
|
|
#else
|
2017-08-11 15:07:32 +00:00
|
|
|
@interface RNFirebaseMessaging : NSObject
|
2017-05-30 12:20:42 +00:00
|
|
|
@end
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|
2018-02-05 17:45:08 +00:00
|
|
|
|