@@ -9,7 +9,7 @@ extern void didRegisterForRemoteNotificationsWithDeviceTokenCallback(const char
11HsStablePtr globalHandler = 0;
11HsStablePtr globalHandler = 0;
12−HsStablePtr globalDeviceTokenHook = 0;
12+HsStablePtr global_didRegisterForRemoteNotificationsWithDeviceToken = 0;
14@implementation AppDelegate
14@implementation AppDelegate
@@ -57,7 +57,7 @@ HsStablePtr globalDeviceTokenHook = 0;
58- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken {
58- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken {
59 NSString *deviceTokenString = [deviceToken base64EncodedStringWithOptions: 0];
59 NSString *deviceTokenString = [deviceToken base64EncodedStringWithOptions: 0];
60− didRegisterForRemoteNotificationsWithDeviceTokenCallback([deviceTokenString UTF8String], globalDeviceTokenHook);
60+ didRegisterForRemoteNotificationsWithDeviceTokenCallback([deviceTokenString UTF8String], global_didRegisterForRemoteNotificationsWithDeviceToken);
63- (void)application:(UIApplication *)application didFailToRegisterForRemoteNotificationsWithError:(NSError *)error {
63- (void)application:(UIApplication *)application didFailToRegisterForRemoteNotificationsWithError:(NSError *)error {
@@ -66,10 +66,10 @@ HsStablePtr globalDeviceTokenHook = 0;
69−void runInWKWebView(HsStablePtr handler, const char * _Nonnull progName, HsStablePtr deviceTokenHook) {
69+void runInWKWebView(HsStablePtr handler, const char * _Nonnull progName, HsStablePtr hs_didRegisterForRemoteNotificationsWithDeviceToken) {
70 @autoreleasepool {
70 @autoreleasepool {
71 globalHandler = handler;
71 globalHandler = handler;
72− globalDeviceTokenHook = deviceTokenHook;
72+ global_didRegisterForRemoteNotificationsWithDeviceToken = hs_didRegisterForRemoteNotificationsWithDeviceToken;
73 const char * _Nonnull argv [] = {"", 0};
73 const char * _Nonnull argv [] = {"", 0};
74 UIApplicationMain(0, argv, nil, NSStringFromClass([AppDelegate class]));
74 UIApplicationMain(0, argv, nil, NSStringFromClass([AppDelegate class]));