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

Incorrect invalid tokens of the APNs facade[v2.3.4] #164

Open
wailaw opened this issue Jan 26, 2018 · 1 comment
Open

Incorrect invalid tokens of the APNs facade[v2.3.4] #164

wailaw opened this issue Jan 26, 2018 · 1 comment

Comments

@wailaw
Copy link

wailaw commented Jan 26, 2018

I tested the APNs facade with a valid dev cert and an invalid device token in DEV environment.
The response of the facade returned with the status code "8", which indicates that the token is invalid.
However, there was nothing contained in $pushNotificationService->feedback() and $pushNotificationService->getInvalidTokens(). That invalid token instead appeared in $pushNotificationService->getSuccessfulTokens().

Everything's fine if a valid device token is used (the status is "0").

Here is the sample of the original response:
"originalResponses": [ "a73b0f695b9f87f5dbd55f586ce093ef9dfa70d84855a39094dccbe3d3dd44c7" => Message { "id": 0 "code": 8 } ]

And the status code table:

0 - No errors encountered
1 - Processing error
2 - Missing device token
3 - Missing topic
4 - Missing payload
5 - Invalid token size
6 - Invalid topic size
7 - Invalid payload size
8 - Invalid token
255 - None (unknown)

@wailaw wailaw changed the title Incorrect invalid tokens of the APNs facade Incorrect invalid tokens of the APNs facade[v2.3.4] Jan 26, 2018
@eerison
Copy link

eerison commented Jan 28, 2019

I received id=292869640 and code=8
But I didn't understand Why don't work Because I used same pem, password and deviceToken in other project and worked :/

edit


I tested using ./np push apns ... and worked.

edit 2


I tested again and not work more :P

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants