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

APNs Response status 400 and 'MissingTopic' reason #5

Open
arcoslwm opened this issue Jan 4, 2017 · 1 comment
Open

APNs Response status 400 and 'MissingTopic' reason #5

arcoslwm opened this issue Jan 4, 2017 · 1 comment

Comments

@arcoslwm
Copy link

arcoslwm commented Jan 4, 2017

Switching to production mode (sandbox = false and the certificate) i get the following response:

[response] => Nfilin\Libs\ApnsHttp2\CurlResponse Object ( [reason] => MissingTopic [timestamp] => [status] => 400 )

reading the docs i think it may be related to:

The appropriate encoding to employ for the apns-id, apns-expiration, and apns-collapse-id request headers differs depending on whether it is part of the initial or a subsequent POST operation, as follows:
The first time you send these headers, encode them with incremental indexing to allow the header names to be added to the dynamic table
Subsequent times you send these headers, encode them as literal header fields without indexing.

https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/CommunicatingwithAPNs.html

Someone can guide me?, if I am doing something wrong or how to solve this?.
In sandbox mode works fine.

in this thread APS : missing topic mentions differences between development and production certificates

@arcoslwm
Copy link
Author

arcoslwm commented Jan 4, 2017

Sorry,
is a version problem.
the commit 'bfdcd9a32deb338482889bef37d81ca64f46499e' solve the problem but i installed via composer the v1.0.1

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

1 participant