Reactrestaurant
GithubDemoYoutube
  • REACT RESTAURANT
  • Technologies
  • Restaurant App
    • Download Zip
    • Requirements
    • Installation Guide
    • App Structure
    • API Config
    • Push Notification
    • Release Build
    • Error Handling
Powered by GitBook
On this page
  1. Restaurant App

Push Notification

PreviousAPI ConfigNextRelease Build

Last updated 5 years ago

Push Notifications

Goto:

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)

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

Make sure you have certificates setup by following

SETUP android and iOS:

https://firebase.google.com/docs/cloud-messaging/ios/certs
https://www.npmjs.com/package/react-native-fcm
https://firebase.google.com/docs/cloud-messaging/ios/certs