You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 } ]
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 :/
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)
The text was updated successfully, but these errors were encountered: