Using Genymotion and the Expo app on my phone resulted in the below error when using Notifications.getDevicePushTokenAsync() on Android only. It traced to line 84 on NotificationsModule.java
Illegal callback invocation from native module error
On iOS when using an emulator, the expected outcome - a warning that the function is only accessible in a standalone application appears.
On an standalone APK - the function works as expected, and returns a GCM token. That’s the main thing so thank you for recently making this available.
I can see the condition in NotificationsModule.java that check’s if it’s a device or not - but at least for me, the condition wasn’t catching in the emulator and crashing the app.
Within React Native Constants.isDevice works as expected, so I’m just checking within my app before I ask for the token.