FCM stand for Firebase Cloud Messaging, is a cross-platform message, which alow you safe and secure sending messages.
Using Firebase Cloud Messaging, We can send message to drive user reinstatement and retention. we can tell client app that
FCM working Diagram:
Setup of FCM on Ionic:
1. You need to create the account in https://firebase.google.com/ and create your project in your account.
2. Give name of the package for your project (mine is info.ionicproject.firebase) which is to
3. Now go to the Project overview and then project setting download google-service.json file and place in project root directory.
4. Now install
cordova plugin add cordova-plugin-fcm
5. Below is the code to get Device ID:
window.FirebasePlugin.getToken(function (token) { // console.log("token==2", token); }, function (error) { console.error(error); });
6. And Below is the code to
window.FirebasePlugin.onNotificationOpen(function (notification) { alert(notification.body) }, function (error) { console.error(error); });
More From Oodles
Ready to innovate? Let's get in touch
Cookies are important to the proper functioning of a site. To improve your experience, we use cookies to remember log-in details and provide secure log-in, collect statistics to optimize site functionality, and deliver content tailored to your interests. Click Agree and Proceed to accept cookies and go directly to the site or click on View Cookie Settings to see detailed descriptions of the types of cookies and choose whether to accept certain cookies while on the site.
About Author
Arun Kataria
Arun has good skills in AngularJS, NodeJS, MongoDB and many more. He is highly motivated which allow him to strive for proficiency when accomplishing assigned duties. He is an excellent team operative.