.getExpoPushTokenAsync not returning token

  1. SDK Version: 39
  2. Platforms(Android/iOS/web/all): iOS

I’ve seen this many times but no answer… I’m not getting a push token back from…

if (Device.isDevice) {
console.log(‘getting token’)
token = await Notifications.getExpoPushTokenAsync()
console.log(‘got token’)
} else {
console.log(‘push notifications are only available on physical devices’)

console prints: ‘getting token’, then nothing.

I also added the snack, pushnotifications - Snack, to expo and it does not return anything.

After reading some things about issues with WiFi and other ‘network issues’ that can affect notifications on iOS, I thought I should mention that I am using a WiFi only iPhone in Nicaragua. I did try using my hotspot on Android and connecting to that, but even though the Android is using a cell network, the hotspot is still WiFi.

One of my colleagues encountered this problem during the early stages of developement on our app. If I remember correctly, the problem was fixed when we upgraded the Expo client app on the phone we used to test the app on.

Thanks… I just checked and there is no update in the app store so I must have the latest version. I’m wondering if SDK 40 has a fix (I’m using 39). Very reluctant to try that though since upgrading from 32 to 39 broke over 50% of my components and took over a month to get working again.

I had the same Issue and got it fixed by changing all the letters to lower in package name in app.json.
Don’t forget to change the same in Google API as well.


@tim92109 Eu estou a semana toda com esse mesmo problema, faz dias que eu estou pesquisando e testando. Eu já fiz de tudo, o firebase da empresa está configurado, o client expo no celular a mensagem push chega, mas no APK o token fica vazio.
Se alguém tiver uma solução mágica, por favor nos ajudem.

Não resolveu - https://docs.expo.io/push-notifications/using-fcm/
Não resolveu - https://docs.expo.io/versions/latest/sdk/notifications/