Cross posted on Medium
Capturing the Device Tokens is necessary for push notification to work. A Device Token is nothing but an ID that uniquely i...
For further actions, you may consider blocking this person and/or reporting abuse
Hello, Kevin, great article!
I have another question though.
I do need to recreate the NSData to update tags on azure. Before ios 13 i would do just this:
NSData nsData = new NSData(DeviceToken, NSDataBase64DecodingOptions.None);
that doesnt seems to work on ios13 since the NSData has a different structure, would you know how to do that too?
Thanks a lot!
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?
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.
Thank you for this excellent explanation of the problem and a succinct C# solution. It helped me a lot.
Got bit by this as well after upgrading to iOS 13.
Great article. Thanks a lot.
Thanks a Lot Kevin.