Got error code 8 for token [...]
See original GitHub issueI am in the process of deploying my app to the app store. I have tested all certicates and keys (development and production) and they are fine. Push works perfectly in development. However, when I set NODE_ENV to production and also “production”: true in config.push.json, it won’t work anymore. Upon sending a push notification, I get the following error:
[46.101.207.204] Push: Sent message "Laptop" to 1 ios apps 0 android apps[46.101.207.204]
[46.101.207.204] Got error code 8 for token e4f493fa53f80ecceb8351c878b028caa91bd050d1c075a9f385deb4b24a9750[46.101.207.204]
I can imagine that this happens because the app has been installed via xcode on the device. Can anybody confirm? Will the message disappear once the app has been installed through the app store? And what is the correct push setting to use with Apple TestFlight?
Issue Analytics
- State:
- Created 8 years ago
- Comments:95
Top Results From Across the Web
Reason codes for return code 8 (8) - IBM
A key identifier was passed to a service or token. It is checked in detail to ensure that it is a valid token,...
Read more >APNS "invalid token" error-response (code 8) - Stack Overflow
I know that the "invalid token" error is commonly a result of environment mismatch - trying to send notifications from the APNS production ......
Read more >Error 8 Invalid Token makes no sense - Doesn't happen with ...
Hey, I'm getting error 8 when trying to send a notification with node-apn ... A error code of 8 indicates that the device...
Read more >[Simba][ThriftExtension] (8) authentication error after token ...
Hello all,. I got [Simba][ThriftExtension] (8) authentication error (status code: 403, unable to create extract) prompted, after token ...
Read more >Access Token Error Response and Codes - Tutorialspoint
This error occurs when there is a missing parameter that includes multiple credentials, unsupported parameter value. 400. 2. unauthorized_client. The ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@Streemo Production certificates will not work if the app was installed via XCode. Thus, if you installed your app via XCode on your device and use production settings, you will get error code 8 (given your certificates are fine). So how can we test production settings before submitting the app to the store? Via Testflight (Apples platform for beta testing). If you install your app via Testflight (you need to upload an archive to itunesconnect for that and configure Testflight) then it will work with production certificates. Good luck!
Np, Apple stopped making p12 files, but I didn’t think they wouldn’t no longer work with production. I guess we should check into any official announcement. Glad everything works now.