react-native-firebase/ios/RNFirebase/messaging/RNFirebaseMessaging.h

31 lines
798 B
C
Raw Normal View History

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
#if __has_include(<FirebaseMessaging/FirebaseMessaging.h>)
#import <FirebaseMessaging/FirebaseMessaging.h>
2017-08-11 15:07:32 +00:00
#import <React/RCTBridgeModule.h>
#import <React/RCTEventEmitter.h>
@interface RNFirebaseMessaging : RCTEventEmitter<RCTBridgeModule, FIRMessagingDelegate>
2017-03-09 15:26:28 +00:00
+ (_Nonnull instancetype)instance;
@property _Nullable RCTPromiseRejectBlock permissionRejecter;
@property _Nullable RCTPromiseResolveBlock permissionResolver;
#if !TARGET_OS_TV
- (void)didReceiveRemoteNotification:(nonnull NSDictionary *)userInfo;
- (void)didRegisterUserNotificationSettings:(nonnull UIUserNotificationSettings *)notificationSettings;
2017-03-09 15:26:28 +00:00
#endif
@end
#else
2017-08-11 15:07:32 +00:00
@interface RNFirebaseMessaging : NSObject
@end
#endif
#endif