Ok, so found that that if you don't have the background capability of push notifications to your project then you have to call requestAuthorization() in order to get the push token, as described above.
But when you add that background capability, then you can obtain the token without calling requestAuthorization().
What's with that?
Topic:
App & System Services
SubTopic:
Notifications
Tags: