Push Notification

Push Notifications

Goto: https://firebase.google.com/docs/cloud-messaging/ios/certs

Create a Firebase App

First, you should create a free Firebase account and create a new project there. You can visit firebase.google.com and signup if you don't have an account with Google earlier, and if you have an account, you can create a firebase app project. You can enter the project Name and Select Region, and it will create a Firebase project for you.

Once the project gets Created, Navigate into Overview menu on the left side there you can see project overview and under that click on project settings and Add Firebase to your android app as displayed in the below screenshot.

After that, it navigates to the page where you can enter your android package name then click on register app, and you will find an option to download the google-services.json file as displayed in the below screenshot

You need to Generate for Android download google-services.json file and place it in android/app directory and for iOS download GoogleService-Info.plist file and place it in /ios/your-project-name directory (next to your Info.plist)

Make sure you have certificates setup by following https://firebase.google.com/docs/cloud-messaging/ios/certs

SETUP android and iOS: https://www.npmjs.com/package/react-native-fcm

If you want notification so you can set up and get it.

Last updated