Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS 13 APNS Token Problem #151

Closed
Akz47 opened this issue Sep 20, 2019 · 2 comments
Closed

iOS 13 APNS Token Problem #151

Akz47 opened this issue Sep 20, 2019 · 2 comments

Comments

@Akz47
Copy link

Akz47 commented Sep 20, 2019

Cordova CLI: 9.0.0
Cordova iOS platform: 5.0.1
Cordova-plugin-firebasex: 6.1.0
Firebase SDK: 6.3.0

There appears to be a format problem when retrieving iOS 13 device tokens via getAPNSToken() method. It returns a format like the following, instead of a device token:

{length = 32, bytes = 0xd3d997af 967d1f43 b405374a 13394d2f ... 28f10282 14af515f }

This appears to be an iOS 13 push token format change highlighted at various articles:
https://onesignal.com/blog/ios-13-introduces-4-breaking-changes-to-notifications/
https://forums.developer.apple.com/thread/117545

Can someone please advise on the above? Thank you.

@pghoratiu
Copy link

pghoratiu commented Oct 9, 2019

phonegap-plugin-push has a similar workaround implemented here
phonegap/phonegap-plugin-push@84781fd

I pushed a PR with the same fix applied here, works ok for me:
#177

Please provide feedback.

@dpa99c
Copy link
Owner

dpa99c commented Oct 22, 2019

Fixed by #177

@dpa99c dpa99c closed this as completed Oct 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants