Enable/Disable Apple Push Notification from iPhone app?

You can read your app’s permissions using UIRemoteNotificationType enabledTypes = [[UIApplication sharedApplication] enabledRemoteNotificationTypes]; and then performing a bitwise and operation with the different types to see which are enabled. You can also call unregisterForRemoteNotifications to disable notifications. The one thing you can’t do is turn on notifications, although you can direct the user.

Leave a Comment