expo: SDK37 Android Expo Client: Couldn't get GCM token on device
š Bug Report
While running the guide from https://docs.expo.io/versions/v37.0.0/guides/push-notifications,
Iām getting the error Couldn't get GCM token on device.
Please run the following project in local expo client to reproduce it https://github.com/yortyrh/pushnandroidissue
Environment
Expo CLI 3.17.15 environment info:
System:
OS: Windows 10 10.0.18362
Binaries:
Node: 12.0.0 - D:\Soft\nodejs\node.EXE
Yarn: 1.19.1 - D:\Soft\Yarn\bin\yarn.CMD
npm: 6.9.0 - D:\Soft\nodejs\npm.CMD
npmPackages:
expo: ~37.0.3 => 37.0.4
react: ~16.9.0 => 16.9.0
react-native: https://github.com/expo/react-native/archive/sdk-37.0.0.tar.gz => 0.61.4
This happens in Android using the expo client
Steps to Reproduce
- Execute the following steps in windows CMD.
git clone git@github.com:yortyrh/pushnandroidissue.git
cd pushnandroidissue
yarn install
yarn start
- Once the application starts, it shows the alert: āError: Couldnāt get GCM token on deviceā
Expected Behavior
It should show Token: <the push notification token> and no alert
Actual Behavior
It shows Token: <empty> and the Alert: āError: Couldnāt get GCM token on deviceā

Reproducible Demo
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 23 (11 by maintainers)
Commits related to this issue
- [android] Rephrase comment around "Couldn't get GCM token" (#7682) # Why Fixes https://github.com/expo/expo/issues/7653. # How On clean install, when only running an SDK37 experience, `getOr... — committed to expo/expo by sjchmiela 4 years ago
- [android] Rephrase comment around "Couldn't get GCM token" (#7682) # Why Fixes https://github.com/expo/expo/issues/7653. # How On clean install, when only running an SDK37 experience, `getOr... — committed to expo/expo by sjchmiela 4 years ago
Same issue with my production app on Android. Everything seems to be configured correctly : Firebase, key restriction,
android.googleServicesFile
inapp.json
and key is showing when I runexpo push:android:show
,This is changing the issue for expo-client. It is now not resolving the promise. For standalone android application, after configuring firebase it is still the same. Now, looks like the application is somehow reporting to firebase in spite of the issue. Of course, push notifications are not working, but firebase analytics is receiving usage.
Anyway⦠still not able to receive push notifications even after configuring firebase.
Iām having this issue as well and it crashes the app. Device Iām using is Android Xiaomi Note 7