简体   繁体   English

链接现有的Firebase和Google Cloud项目

[英]Link existing Firebase and Google Cloud projects

I am trying to migrate my Android app from GCM to FCM. 我正在尝试将我的Android应用程序从GCM迁移到FCM。
I use Google Cloud project for GCM and Firebase project for some Firebase features (Analytics, etc.) now. 我现在将Google Cloud项目用于GCM,并将Firebase项目用于某些Firebase功能(Analytics等)。
Docs say that I need to import Google Cloud project to Firebase, but I already have Firebase project for my app. 文档说我需要将Google Cloud项目导入Firebase,但是我的应用程序已经有了Firebase项目。 As I understand, it is needed to provide GCM and FCM tokens compatibility. 据我了解,需要提供GCM和FCM令牌兼容性。

So, how to link existing Firebase and Google Cloud projects? 那么,如何链接现有的Firebase和Google Cloud项目?
If it is impossible, is it possible to send messages to old tokens using new FCM endpoints and which credentials (Google Cloud or Firebase) should be used for it? 如果不可能,是否可以使用新的FCM端点将消息发送到旧令牌,并应使用哪个凭据(Google Cloud或Firebase)?

All Firebase project are also Google Cloud projects. 所有Firebase项目也是Google Cloud项目。 You don't "link" them together - they are the same. 您无需将它们“链接”在一起-它们是相同的。 They have exactly the same configurations and service accounts. 它们具有完全相同的配置和服务帐户。

When you imported Firebase into your existing Google Cloud project, what you did was add Firebase APIs to it. 将Firebase导入现有的Google Cloud项目时,您所做的就是向其中添加Firebase API。 Now you should be able to use Firebase services with your same project. 现在,您应该可以在同一个项目中使用Firebase服务。 It sounds like you should just start using Firebase in your project as you would normally. 听起来您应该像往常一样在项目中开始使用Firebase。

The GCM and FCM backends are essentially identical, except for the endpoint that you use to send messages. 除了用于发送消息的端点外,GCM和FCM后端基本相同。 So, try sending messages to the new endpoint. 因此,尝试将消息发送到新端点。

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

相关问题 具有Firebase和多个云项目的Android Google身份验证 - Android Google Authentication With Firebase And Multiple Cloud Projects google-services.json Google Cloud out-login和Firebase动态链接同一个项目android - google-services.json Google Cloud outh login and Firebase dynamic link same project android Google Cloud Messaging与Firebase - Google Cloud Messaging vs Firebase 具有多个项目的 Firebase google-services.json? - Firebase google-services.json with multiple projects? 是否可以将PhoneAuth链接到Firebase中的现有用户帐户? - Is it possible to link PhoneAuth to an existing user account in Firebase? 将firebase分析链接到Google Play - Link firebase analytic to Google play Firebase 相同应用风格的多个项目的云功能 - Firebase cloud functions for multiple projects at the same app flavor 在 iOS 应用程序和 Firebase/Google Analytics 中配置多个 Firebase 项目运行时 - Configure Multiple Firebase Projects Runtime in iOS application and Firebase/Google Analytics 将Google Cloud Messaging添加到现有的Android项目 - Adding Google Cloud Messaging to existing Android project 具有Firebase和改造功能的Google Cloud Endpoints v2 - Google Cloud Endpoints v2 with firebase and retrofit
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM