I had expo sdk less than sdk 45 in my expo react native app which previously used expo cli. For using FCM, I used to write expo push:android:upload --api-key , in which your token means server key. But now, my app has been converted to eas cli and I can't find the command or procedure to use FCM for notifications in my app anywhere not even in expo documentation. I previously used to follow this guide enter link description here
CodePudding user response:
Run eas credentials
, select Android, then Push Notifications: Manage your FCM Api Key, and then choose the appropriate option to set up the key.
docs...
OR
- Go to https://expo.dev/
- Select a project
- Go to credentials
- Click on the application ID
- In the Service Credentials section, add FCM Server Key