Loading src/ios/PushPlugin.m +4 −0 Changes for src/ios/PushPlugin.m: 4 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -102,6 +102,7 @@ isInline = NO; #if __IPHONE_OS_VERSION_MAX_ALLOWED >= 80000 if ([[UIApplication sharedApplication]respondsToSelector:@selector(registerUserNotificationSettings:)]) { UIUserNotificationSettings *settings = [UIUserNotificationSettings settingsForTypes:UserNotificationTypes categories:nil]; [[UIApplication sharedApplication] registerUserNotificationSettings:settings]; Loading @@ -109,6 +110,9 @@ } else { [[UIApplication sharedApplication] registerForRemoteNotificationTypes:notificationTypes]; } #else [[UIApplication sharedApplication] registerForRemoteNotificationTypes:notificationTypes]; #endif if (notificationMessage) // if there is a pending startup notification [self notificationReceived]; // go ahead and process it Loading Loading
src/ios/PushPlugin.m +4 −0 Changes for src/ios/PushPlugin.m: 4 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -102,6 +102,7 @@ isInline = NO; #if __IPHONE_OS_VERSION_MAX_ALLOWED >= 80000 if ([[UIApplication sharedApplication]respondsToSelector:@selector(registerUserNotificationSettings:)]) { UIUserNotificationSettings *settings = [UIUserNotificationSettings settingsForTypes:UserNotificationTypes categories:nil]; [[UIApplication sharedApplication] registerUserNotificationSettings:settings]; Loading @@ -109,6 +110,9 @@ } else { [[UIApplication sharedApplication] registerForRemoteNotificationTypes:notificationTypes]; } #else [[UIApplication sharedApplication] registerForRemoteNotificationTypes:notificationTypes]; #endif if (notificationMessage) // if there is a pending startup notification [self notificationReceived]; // go ahead and process it Loading