unregisterForRemoteNotifications()
Unregisters for all remote notifications received through Apple Push Notification service.
Declaration
func unregisterForRemoteNotifications()Discussion
Call this method when your app no longer needs to receive push notifications, such as when:
Someone logs out of an account associated with push notifications
Someone explicitly requests to stop receiving notifications through your app interface
Your app removes support for all types of remote notifications
The Settings app also provides controls to prevent apps from receiving remote notifications. Apps unregistered through this method can always re-register by calling registerForRemoteNotifications().