DEV Community

loading...

Discussion on: Correctly capture iOS 13 Device Token in Xamarin

Collapse
ksbecker profile image
ksbecker

What happens if you fail to capture the token on RegisteredForRemoteNotifications? Is there a way to get to token later? Or maybe the person originally denied push but later went into Settings and enabled it there. How do you know that happened and how do you get the token then?

Collapse
codeprototype profile image
Kevin Le Author

That's an interesting scenario: user disable push notif, launch app, then user enable push. Question is in between, what does iOS pass when it calls RegisteredForRemoteNotifications. We will need to test. But that's common regardless of app being in Xamarin, Obj-C, Swift, etc.