I have read the main article about notifications and the more elaborate documentation but I'm left with some questions.
- When the user is prompted to opt in for notifications, the didRegisterForRemoteNotificationsWithDeviceToken will be triggered, correct? I receive some kind of device token in this function that I can send to my server, so I can notify this device through that token, correct?
- So what happens when the user opts out of notifications through the settings menu? Does my app receive a function call I can handle? How can I notify my server that the device token is no longer used or that the notifications are disabled?
- Now the user has no notifications, but feels he/she should opt back in and does so via the settings again. Do I get a call in my app I can handle? Is the device token different from before? If I do not get a call I can handle, but the device does have a new device token, how do I notify this to my server?
- And last but not least, after uninstalling and reinstalling my app, does the app store the settings of the notifications (permissions and/or device token).
Thanks in advance!
Craz1k0ek