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.

Cannot get GCM token for device

See original GitHub issue

Environment

ExpoKit, running on Android, LG Stylo 3+

Steps to Reproduce

  1. Call await Notifications.getExpoPushTokenAsync();
  2. Receive error

Expected Behavior

  1. Call Notifications.getExpoPushTokenAsync();
  2. Receive token

Actual Behavior

I get this error. screenshot_2018-08-04-16-56-33

Reproducible Demo

I can’t reproduce this issue in a demo. This happens every single time in my app, however. The first few calls to get the token seemed to work fine. Is this maybe some issue when you have already requested the Expo push token for that device?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:7
  • Comments:14 (2 by maintainers)

github_iconTop GitHub Comments

67reactions
salihkirazcommented, Nov 13, 2018

Make sure you’re logged Expo. I improved when I logged in again.

exp login

7reactions
VM8198commented, Mar 5, 2019

run expo login login with your credentials and it will work fine…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Expo: “Error: Couldn't get GCM token on device”
I'm trying to get a notification token to use in Expo Notifications, but i'm getting the following error: “Error: Couldn't get GCM token...
Read more >
Error: Couldn't get GCM token on device #7714
I'm trying to get a notification token to use in Expo Notifications, but i'm getting the following error: “Error: Couldn't get GCM token...
Read more >
Android standalone app fails to get expo push token ...
According to the Logcat in AndroidStudio following error occurs: Error: Couldn't get GCM token on device. I had already transitioned from GCM to ......
Read more >
Couldn t get GCM token for device, Expo push notifications, Google ...
If the provided ID token has the correct format, is not expired, and is properly signed, the method returns the . Getting GCM...
Read more >
Error: Couldn't get GCM token for device : r/reactnative
Error: Couldn't get GCM token for device. Hey guys, I'm facing an error this day about push notification. I run the app on...
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