Skip to content

Conversation

plonkus
Copy link

@plonkus plonkus commented Jul 20, 2016

The registerWithToken method doesn't correctly convert the device token (inputed as a hex NSString) to an NSData object. This causes Twilio to report that the APNs token has an invalid format and push notifications don't go through. See: https://www.twilio.com/docs/api/errors/52134

With this change, I convert convert the hex NSString to an NSData object before passing it to the Twilio SDK and am able to successfully receive push notifications.

Thanks for creating this bridge!

@bradbyte
Copy link
Contributor

@plonkus awesome!! thanks so much for fixing this. We weren't able to get the push notifications working but couldn't tell where the issue was. I'll merge this, and get it in the 0.2.0-rc2 branch too.

@bradbyte bradbyte merged commit 19c72ac into ccm-innovation:master Jul 21, 2016
@bradbyte
Copy link
Contributor

bradbyte commented Jul 21, 2016

@plonkus Added this to the 0.2.0 release.

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.

2 participants