How long do I have to migrate to FCM?
We will turn off most GCM services in April 2019, so you should plan to have most of your services migrated by then.
Note that client SDKs and GCM tokens will continue to work indefinitely. However, you won't be able to target the latest version of Google Play Services in your Android app unless you migrate to FCM.
--Google Developer page has announced the message like the following:
As of April 10, 2018, Google has deprecated GCM. The GCM server and client APIs are deprecated and will be removed as soon as April 11, 2019. Migrate GCM apps to Firebase Cloud Messaging (FCM), which inherits the reliable and scalable GCM infrastructure, plus many new features. See the migration guide to learn more.And from
firebase.googleblog.com:
If you have projects that are still using the GCM APIs, you will need to update your client and server code to use FCM before April 11, 2019. But rest assured, your existing GCM tokens will continue to work with FCM so you won't lose the ability to send messages to your existing users.
I've confused with these messages. Does this mean?
- 1/ Change the server's endpoint to FCM's ones:
fcm.googleapis.com/fcm/andfcm-xmpp.googleapis.com(this point is OK to change)- 2/ MUST we change our app to use FCM library rather than GCM(gcm.jar) library? Or can we just keep old GCM(gcm.jar) and JUST ONLY change server?
And a question about the internal working of Google push notification:
- 1/ How can my previous user with GCM(gcm.jar) code continue to receive notification after GCM shutdown? Does this mean GCM library is just an intermediate (.i.e. Push notification redirector) to receive the token and notification message? Is there mechanism from Google to redirect to correct notification URL like the following picture?
You received this message because you are subscribed to the Google Groups "android-gcm" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-gcm...@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-gcm/c3118325-8416-452c-8a5a-9cb4c7755631%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Note that client SDKs and GCM tokens will continue to work indefinitely
However, you won't be able to target the latest version of Google Play Services in your Android app unless you migrate to FCM.
Thank you. I've some points need to be clarified:Note that client SDKs and GCM tokens will continue to work indefinitelyDoes client SDKs here mean old GCM library I've used?
However, you won't be able to target the latest version of Google Play Services in your Android app unless you migrate to FCM.I don't know the meaning of Target the latest version of Google Play Service can you giving more detail. Also combined with `Meet Google Play's target API level requirement` (https://developer.android.com/distribute/best-practices/develop/target-sdk) does this mean I cannot release a new version of our app with our current GCM implementation? And does GCM still work after updating target to Android 8.0 (API level 26) or even updating to Android 9.0(API level 28) ?
dependencies { compile "com.google.android.gms:play-services-gcm:6.0.0" compile "com.google.android.gms:play-services-OTHER-LIBRARY:6.0.0"
}
To view this discussion on the web visit https://groups.google.com/d/msgid/android-gcm/cc830304-bd23-48b9-af9d-10cc20441eb6%40googlegroups.com.
any GCM library.
(this happened because of the significant changes in Background Restrictions introduced in Android O)
Thank for the quick responseany GCM library.Currently, I use gcm.jar (v1.0.2) which is pretty old; so does it still works?
(this happened because of the significant changes in Background Restrictions introduced in Android O)Also, I've set targetSdk to 28; and I can still receive notification on my Android 8.1 device now. So what specific functions of the push notification are breaking on Android O?
I want to ask more about the problem I've confused about Client SDK (GCM Client SDK and even FCM SDK):Do they connect to FCM or GCM? Or do they delegate the creating connection to task to push notification server(GCM or even FCM) to Google Play Service? I think that the latter is true (Client SDK delegate the creating connection to task to push notification server); so we still can use any GCM library but still can get a new token on new devices, doesn't it?Thanks.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-gcm/286e310a-e9ef-4e09-9233-fa7831bee811%40googlegroups.com.