Firebase Push Notification setup
FCM (Firebase Cloud Messaging) is a push notification services, where we can use it for both android and iOS application; we have integrated FCM for notifying user for chat purpose. To setup FCM you need to follow these steps
- Register Android app with Firebase & Download setup file
- Register iOS app with Firebase & Download setup file
- Adding Firebase Plugin to your project
Click "add Firebase to your Android app"
Fill your package name & Register app
Download google-services.json
Setup for iOS
Choose ios project
Fill your bundle id & Register app
Download GoogleServices-Info.plist file
Integrating with your application
ionic cordova plugin add cordova-plugin-firebase
npm install --save @ionic-native/firebase
IMPORTANT : you need to copy the downloaded files into project folder
- google-services.json
- GoogleService-Info.plist