question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Got error code 8 for token [...]

See original GitHub issue

I 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:closed
  • Created 8 years ago
  • Comments:95

github_iconTop GitHub Comments

1reaction
lucnatcommented, Nov 15, 2015

@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!

0reactions
da314pccommented, Feb 6, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found