- SDK Version: 39
- 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’)
return
}
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.