Hi all,
Im finding some little issues when a users opens my app the first time and still has to accept the remote notifications.
My app will store the token of the user in a public string of the AppDelegate
However, when the user takes a while for accepting it, the app is already in its main viewcontroller. By then the app still didnt fetched the token. Once the user closed the app fully and opens it again, it did fetched the token and it can be stored on my host.
Anyone understand my problem and how to fix this?
Is there some kind of 'listener' I can set up that will be triggered once the app received an token?
Thanks!
Im finding some little issues when a users opens my app the first time and still has to accept the remote notifications.
My app will store the token of the user in a public string of the AppDelegate
However, when the user takes a while for accepting it, the app is already in its main viewcontroller. By then the app still didnt fetched the token. Once the user closed the app fully and opens it again, it did fetched the token and it can be stored on my host.
Anyone understand my problem and how to fix this?
Is there some kind of 'listener' I can set up that will be triggered once the app received an token?
Thanks!