To get the idea about Service Account JSON you can visit https://aboutreact.com/react-native-firebase-cloud-messaging/
-
Clone Repo
git clone https://github.com/SnehalAgrawal/about-react-dummy-firebase-apis.git
-
Jump into the directory
cd about-react-dummy-firebase-apis
-
Install:
npm install
-
Update the service account file path:
const serviceAccount = require("/Users/kepi/Desktop/MainRepo/service-account-file.json");
-
Run the app:
npm start
- Notify
URL: http://localhost:3000/notify
Method: GET