Native Shopify Mobile App with 20 new features
Kickstart your hyperlocal marketplace in Corona pandemic with a starter guide
Android App Development
iOS App Development
Cross Platform App Development
Hire on-demand project developers and turn your idea into working reality.
Big thanks to Webkul and his team for helping get Opencart 188.8.131.52 release ready!
Owner and Founder. Opencart
As you know Google introduced the new FCM (Firebase Cloud Messaging) as an upgrade to GCM, Its not mandatory to update your app to FCM as the GCM is still functional and the update is not affecting it. But
its recommended to upgrade so that you can get the new features. And for the new apps I’ll recommend to use FCM. So lets start migration our existing android app to FCM.
Firstly import your project to Firebase console and provide the package name and SHA-1. Then download the new google-services.json file and replace it with your existing file in your project.
Please note that now you don’t need any kind of permission in your manifest like in GCM so remove all the GCM related permissions from manifest file. In the app level gradle file change the dependency from
And now all the major changes just replace the code in manifest from
to the new code
The new MyInstanceIDListenerService.java
An you are ready to go. All the setup is ready just a little bit change, on the Activity in which you want to create the FCM token in your application just add the code
and the function sendTokenToServer(). And FCM is implemented but don’t forgot that now the API-Key and Sender Key is changed so update them on the server side.
You can also test the application notification from Firebase console as you can directly send message from there. For any assistance you can visit the link.
Your email address will not be published. Required fields are marked*
Save my name email and website in this browser for the next time I comment.
Will It work correctly?
Enquiry or Requirement
If you have more details or questions, you can reply to the received confirmation email.