1 // Copyright 2018-present 650 Industries. All rights reserved. 2 3 #import <Foundation/Foundation.h> 4 #import <UIKit/UIKit.h> 5 #import <ExpoModulesCore/EXSingletonModule.h> 6 7 NS_ASSUME_NONNULL_BEGIN 8 9 @protocol EXRemoteNotificationPermissionDelegate 10 11 - (void)handleDidFinishRegisteringForRemoteNotifications; 12 13 @end 14 15 @protocol EXRemoteNotificationPermissionProgressPublisher 16 17 - (void)addDelegate:(id<EXRemoteNotificationPermissionDelegate>)delegate; 18 - (void)removeDelegate:(id<EXRemoteNotificationPermissionDelegate>)delegate; 19 20 @end 21 22 @interface EXRemoteNotificationPermissionSingletonModule : EXSingletonModule <UIApplicationDelegate, EXRemoteNotificationPermissionProgressPublisher> 23 24 - (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)token; 25 - (void)application:(UIApplication *)application didFailToRegisterForRemoteNotificationsWithError:(NSError *)error; 26 27 @end 28 29 NS_ASSUME_NONNULL_END 30