简体   繁体   中英

How to implement FCM in android app? Is it possible that we can use same listener, receiver methods of GCM with FCM?

Hi I would like to migrate from the GCM to FCM .

I would like to know that, shall I use the IntentService , GcmListenerService (May be FcmListnerService ) classes of GCM with FCM ?

I have googled for some sample codes but I couldn't get.

Any help will be appreciated..

Thanks.

I believe what you are looking for is the following documentation:

Migrate a GCM Client App for Android to Firebase Cloud Messaging

https://developers.google.com/cloud-messaging/android/android-migrate-fcm#import_your_gcm_project_as_a_firebase_project

This explains everything needed to migrate from the Manifest, Gradle script changes, and goes all the way to the broadcast receiver.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM