RNNotifications.h 633 Bytes
Newer Older
Lidan Hifi's avatar
Lidan Hifi committed
1
@import UIKit;
2
#import <PushKit/PushKit.h>
yogevbd's avatar
WIP  
yogevbd committed
3
@import UserNotifications;
Lidan Hifi's avatar
Lidan Hifi committed
4

5
@interface RNNotifications : NSObject
6

yogevbd's avatar
WIP  
yogevbd committed
7 8
@property (nonatomic, retain) NSDictionary* initialNotification;

yogevbd's avatar
WIP  
yogevbd committed
9
+ (instancetype)sharedInstance;
10

yogevbd's avatar
yogevbd committed
11 12 13 14 15
+ (void)startMonitorNotifications;
+ (void)startMonitorPushKitNotifications;

+ (void)didRegisterForRemoteNotificationsWithDeviceToken:(id)deviceToken;
+ (void)didFailToRegisterForRemoteNotificationsWithError:(NSError *)error;
yogevbd's avatar
WIP  
yogevbd committed
16 17 18

- (void)finishHandleNotificationKey:(NSString *)notificationKey presentingOptions:(UNNotificationPresentationOptions)presentingOptions;
- (void)finishHandleActionKey:(NSString *)actionKey;
yogevbd's avatar
WIP  
yogevbd committed
19

Lidan Hifi's avatar
Lidan Hifi committed
20

Lidan Hifi's avatar
Lidan Hifi committed
21
@end