Setup expo notification with FCM
Last updated
Was this helpful?
Last updated
Was this helpful?
"Encountered with an exception while calling native method Exception occurred while executing exported method getDevicePushTokenAsync on module ExpoPushTokenManager. Default FirebaseApp is not initialized in this process com.algotradingapp. Make seure to call FirebaaseApp initializeApp(Context) first.
Make sure the package name mathces the android package name found in app.js
After filling out the android package name and app name, download google-services.json and place it in your project.
app.json
, add this line:Put the path to google-services.json file in the app.json
google-services.json
Make sure the current key in app.json matches the api key in google cloud console, and do not restrict the key.
Open Expo.dev, open your built android application. Click "Credentials" from the sidebar menu:
Register your your android app on your firebase project. This will only work on android. On the other hand, ios builds will setup the notification settings for you as mentioned in :