Iām experiencing the exact same problem for a couple of weeks now (luckily we havenāt released the app yet). Notifications work fine on iOS (internal test track), Expo local (iOS/Android), APK build installed directly on the device, but just not when I create an app bundle for the internal test track @ google play. I quadruple checked the server key in firebase/current_api key in google-services.json. @charliecruzan maybe this is the extra information you need?
edit: I just made a whole lot of builds (sorry expo) printing various statuses. It seems getExpoPushTokenAsync does nothing. Nothing at all. No promise, no data. Only fails on AAB builds. Works fine on Expo/APKā¦ Anyone? =(((
I can only print the output in the final build (that I put up in the internal test). I use JSON.stringify(output) and wrap that in a component. In all the builds mentioned before, except the AAB it returns an object with ātypeā and ādataā, both filled, both correct data. In the uploaded AAB (internal test android app store) there is no output. I donāt know how to debug that. It might just hang, or outputs nothing. If there is a way to test that Iād love to know, Iāve been searching high and low =).
edit: Iām someone else btw, I never responded with ānot workingā (editĀ²: okay I kinda did =P). If itās a better idea I can start my own thread but TS seems to have the same problem so maybe my solution might be his/hers.
I just made another APK and installed it directly on my phone: All is fine. The output from getExpoPushTokenAsync wrapped in my component is an object {"type": "expo", "data": "ExponentPushToken[tokenstring]"}. If I now create the app bundle and upload it to my internal test track there is no output. I donāt know if JSON.stringify also would print errors there but it seems like itās just an empty string.
@vivek22719 thanks for your response by the way! I might try expo-updates in a bit!
I just added the sha-1 signing key to firebase and the google cloud api key. I was using the upload key from expo for that (which I left in there). Updatet my google-services.json afterwards. I now get undefined instead of nothing as a response from getExpoPushTokenAsync. I might play a videogame or two and get back at it in an hour or so. @charliecruzan what do you think I can still try?