Notifications.getExpoPushTokenAsync() not providing Expo Push Token in release mode (Android)

#1

I am trying to implement Expo Push Notification for both Android and iOS. In Android when I am developing in expo, the push token is easily generated and the notification is working like a charm. But when I did exp ba and installed the build in real device, the Expo Push Token is not generating. its providing null. Even though the following call has granted in the result.

await Permissions.getAsync(
        Permissions.NOTIFICATIONS
    )

Please can anybody tell me what is needed here additionally.
Thanks in Advance

#2

Hello, which sdk verion do You use?

#3

I am using "sdkVersion": "27.0.0". Few minutes ago I discovered that the build app generates the Expo Push Token but in the second time. First time its generating null. But when I launch the application 2nd time and hitting to grab the token, then its working. May be first time the device is not being registered. But it works fine in dev mode. Don’t know how!!

#4

hey @sujit, sorry to hear you ran into that problem. let us know if it resurfaces, and we can start tracking it here https://github.com/expo/expo/issues :frowning:

closed #5

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.