2018-02-02 08:40:48 +00:00
|
|
|
#ifndef RNFirebaseNotifications_h
|
|
|
|
#define RNFirebaseNotifications_h
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
|
|
|
|
#if __has_include(<FirebaseMessaging/FirebaseMessaging.h>)
|
|
|
|
#import <React/RCTBridgeModule.h>
|
|
|
|
#import <React/RCTEventEmitter.h>
|
|
|
|
|
|
|
|
@interface RNFirebaseNotifications : RCTEventEmitter<RCTBridgeModule>
|
|
|
|
|
2018-02-23 15:34:00 +00:00
|
|
|
+ (void)configure;
|
2018-02-18 17:09:13 +00:00
|
|
|
+ (_Nonnull instancetype)instance;
|
2018-02-02 08:40:48 +00:00
|
|
|
|
2018-02-18 17:09:13 +00:00
|
|
|
#if !TARGET_OS_TV
|
|
|
|
- (void)didReceiveLocalNotification:(nonnull UILocalNotification *)notification;
|
|
|
|
- (void)didReceiveRemoteNotification:(nonnull NSDictionary *)userInfo fetchCompletionHandler:(void (^_Nonnull)(UIBackgroundFetchResult))completionHandler;
|
2018-02-02 08:40:48 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
#else
|
|
|
|
@interface RNFirebaseNotifications : NSObject
|
|
|
|
@end
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|
2018-02-23 15:34:00 +00:00
|
|
|
|