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

Remove utf encoding (it was encoding an already encoded string) #18

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

savy-91
Copy link

@savy-91 savy-91 commented Feb 23, 2022

The current implementation does not allow users to register APNS tokens on iOS.

Flutter is sending an UTF encoded string with the token to the Objective-C code. Objective C is then trying to encode it again and therefore it makes the token invalid.

As an example this APNS token EEA61818EF32127C34DC65F3C6CE7A61C3EBBB742730292845FC5047D3E1EE3A gets registered in the backend as 45454136313831384546333231323743333444433635463343364345374136314333454242423734323733303239323834354643353034374433453145453341 which is not valid and delivery fails.

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

Successfully merging this pull request may close these issues.

1 participant