Enable or Disable Iphone Push Notifications inside the app
[FYI – Few users have reported that it stopped working on iOS 10] You can easily enable and disable push notifications in your application by calling registerForRemoteNotificationTypes and unregisterForRemoteNotificationTypes respectively again. I have tried this and it works.