/push-notification-app

Example of push notifications with NodeJs(backend) + React Native + Firebase Cloud Messaging

Primary LanguageJava

Push Notification

Example of push notifications with NodeJs(backend) + React Native + Firebase Cloud Messaging

Generate a Firebase private key file and add it on the project root:

firebase.json

Follow the installation process described into FCM:

google-services.json

Run Server / Backend (Nodejs + Express):

node index.js

Run Client / React Native App:

cd reative-native-client
yarn install
yarn android

Backend endpoints

  • POST /register - Register the mobile app device token generated by FCM
  • POST /notifications - Backend send a message to the device token registered

References