简体   繁体   English

如何在Android应用中实施FCM? 是否有可能在FCM中使用相同的GCM监听器,接收器方法?

[英]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 . 嗨,我想从GCM迁移到FCM

I would like to know that, shall I use the IntentService , GcmListenerService (May be FcmListnerService ) classes of GCM with FCM ? 我想知道,我应该在FCM中使用GCMIntentServiceGcmListenerService (可能是FcmListnerService )类吗?

I have googled for some sample codes but I couldn't get. 我已经在Google上搜索了一些示例代码,但无法获得。

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 将适用于Android的GCM客户端应用迁移到Firebase Cloud Messaging

https://developers.google.com/cloud-messaging/android/android-migrate-fcm#import_your_gcm_project_as_a_firebase_project 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. 这说明了从清单,Gradle脚本更改迁移到广播接收器所需的一切。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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