Added two buttons to the Maintest project for each of new APIs:
"Check push registration"
"Unregister push notifications"
Tested both:
the app registers for push on launch, so checking returns true
after pressing unregister check reports push is not registered
Pressing button to request authorization register for push again (check button returns true)
Tested on iPhone X iOS 15.3.1
Trying few more iOS versions would be nice, otherwise it's quite straight-forward.
https://github.com/Unity-Technologies/com.unity.mobile.notifications/issues/277 iOS has APIs not only to register for push notifications, but also to unregister. While rarely used, it has use cases, such us user logging out of app. This PR adds two new methods: to check if registered and to unregister.
Added two buttons to the Maintest project for each of new APIs: