lately I wanted to upgrade my Managed Expo App from SDK 43 to 45 (also tested 46).
The app was running fine and the expo-notifications worked as well.
But after the Expo SDK Upgrade, I got the following error in Expo Go on Android:
[expo-notifications] Error encountered while updating server registration with latest device push token., [Error: Fetching the token failed: Please set your Project ID. A valid Firebase Project ID is required to communicate with Firebase server APIs: It identifies your application with Firebase.
Of course everything was already set up correctly, because it worked before the upgrade.
I havenât changed anything, except some dependency fixes according to the Expo Upgrade manual.
I also checked everything again like the google-services.json, Firebase and Expo configurations, etc., but everything seems correct.
Does anyone know what could be the problem? Do you need more information?
Thank you!!
SDK Version: 45 (same problem with 46)
Platforms: Android
I use expo build:android to have apk compiles and actually as my compiles with expo build:android canât resolve the push token (it was working but now it doesnât), I will be thankful to tell me how can I have apk compiles for my project with EAS build, to check will it be start working or not!
In my case, android is ok, but iOS i tested with Expo SDK 43, 44, 45 all not working. It failed from this line:
const { status } = await Notifications.requestPermissionsAsync();
Any code placed after is not triggered. The app doesnât crash but no token return. I guess it could be issue with new iOS version / Xcode? My app is standalone. I do âExpo ejectâ then âNpx pod-installâ in Mac then upload to Apple store using XCode 13.
My SDK 45 package.json has these:
âexpo-notificationsâ: â~0.15.4â,
âexpo-updatesâ: â~0.13.4â,
âfirebaseâ: â8.2.3â,
Everything started after i upgraded from expo 45 to 46, now firebase phone auth doesnât work, firebase recaptcha invisible verification crashes the app and also notification token is not working, i get firebase project id error, I was so happy after switching to expo but now Iâm getting the same bug problems due to which i left react-native bare workflow