28 lines
698 B
Objective-C
28 lines
698 B
Objective-C
#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>
|
|
|
|
+ (void)configure;
|
|
+ (_Nonnull instancetype)instance;
|
|
|
|
#if !TARGET_OS_TV
|
|
- (void)didReceiveLocalNotification:(nonnull UILocalNotification *)notification;
|
|
- (void)didReceiveRemoteNotification:(nonnull NSDictionary *)userInfo fetchCompletionHandler:(void (^_Nonnull)(UIBackgroundFetchResult))completionHandler;
|
|
#endif
|
|
|
|
@end
|
|
|
|
#else
|
|
@interface RNFirebaseNotifications : NSObject
|
|
@end
|
|
#endif
|
|
|
|
#endif
|
|
|