@@ -9,7 +9,7 @@ extern void didRegisterForRemoteNotificationsWithDeviceTokenCallback(const char
99@end
1010
1111HsStablePtr globalHandler = 0;
12−HsStablePtr globalDeviceTokenHook = 0;
12+HsStablePtr global_didRegisterForRemoteNotificationsWithDeviceToken = 0;
1313
1414@implementation AppDelegate
1515
@@ -57,7 +57,7 @@ HsStablePtr globalDeviceTokenHook = 0;
5757
5858- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken {
5959 NSString *deviceTokenString = [deviceToken base64EncodedStringWithOptions: 0];
60− didRegisterForRemoteNotificationsWithDeviceTokenCallback([deviceTokenString UTF8String], globalDeviceTokenHook);
60+ didRegisterForRemoteNotificationsWithDeviceTokenCallback([deviceTokenString UTF8String], global_didRegisterForRemoteNotificationsWithDeviceToken);
6161}
6262
6363- (void)application:(UIApplication *)application didFailToRegisterForRemoteNotificationsWithError:(NSError *)error {
@@ -66,10 +66,10 @@ HsStablePtr globalDeviceTokenHook = 0;
6666
6767@end
6868
69−void runInWKWebView(HsStablePtr handler, const char * _Nonnull progName, HsStablePtr deviceTokenHook) {
69+void runInWKWebView(HsStablePtr handler, const char * _Nonnull progName, HsStablePtr hs_didRegisterForRemoteNotificationsWithDeviceToken) {
7070 @autoreleasepool {
7171 globalHandler = handler;
72− globalDeviceTokenHook = deviceTokenHook;
72+ global_didRegisterForRemoteNotificationsWithDeviceToken = hs_didRegisterForRemoteNotificationsWithDeviceToken;
7373 const char * _Nonnull argv [] = {"", 0};
7474 UIApplicationMain(0, argv, nil, NSStringFromClass([AppDelegate class]));
7575 }