Home > Mobile >  How to use FCM (Firebase Cloud Messaging) while making build of expo react native app through eas cl
How to use FCM (Firebase Cloud Messaging) while making build of expo react native app through eas cl

Time:07-22

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

  1. Go to https://expo.dev/
  2. Select a project
  3. Go to credentials
  4. Click on the application ID
  5. In the Service Credentials section, add FCM Server Key
  • Related