Commit 33646768 authored by Sebastien Clement's avatar Sebastien Clement Committed by Ryan Willoughby
Browse files

add support for iOS 7

parent 91e368fe
Loading
Loading
Loading
Loading
+4 −0
Changes for src/ios/PushPlugin.m: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -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];
@@ -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