Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Do I need to migrate GCM to FCM on client side?

I have the old android app on Play Store which I am not going to update anymore because of making a new app.

Do I need to migrate GCM to FCM in my old android app?

Many sources say:

You have to change your client side... blabla... etc...

but GCM and FCM FAQ says:

GCM tokens will continue to work on client devices.

like image 206
matusalem Avatar asked Mar 04 '23 20:03

matusalem


1 Answers

Existing installs of client-side apps receiving notifications will continue to work for the foreseeable future. You don't need to get new tokens for all users. The existing tokens from GCM will continue to work

But from mid-April:

  1. You won't be able to compile code using the old client-side APIs on a newer SDK/Google Play Services anymore
  2. You won't be able to call the GCM REST API to send messages anymore
  3. New installations of your existing GCM-using app may not be able to get a token.

To compile against the new SDK/Google Play Services, you will need to make changes to your client app to migrate to Firebase Cloud Messaging from GCM. This involves changes to the build.gradle, to AndroidManifest.xml and to your code, as described in Migrate a GCM Client App for Android to Firebase Cloud Messaging.

like image 181
Frank van Puffelen Avatar answered Mar 15 '23 01:03

Frank van Puffelen