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

Invalid Device Token -- 64 chars required? #76

Open
CayenneSF opened this issue Dec 15, 2014 · 1 comment
Open

Invalid Device Token -- 64 chars required? #76

CayenneSF opened this issue Dec 15, 2014 · 1 comment

Comments

@CayenneSF
Copy link

In attempting to use this for a Passbook update, I am getting an "invalid device token" error.

Fatal error: Uncaught exception 'ApnsPHP_Message_Exception' with message 'Invalid device token '9275172de8d10xxx5d4d9d4afdf5eff0'' in /home/xxx/apns/ApnsPHP/Message.php:77

Looking at line 77, the regex test appears to require 64 characters ('~^[a-f0-9]{64}$~i'). The device token I got back from the device, though, is much shorter. Am I using the wrong token?

@swey
Copy link

swey commented Jan 10, 2015

Hi,

you have to use the pushToken. The naming of the property is not that good.

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

2 participants