链接现有的Firebase和Google Cloud项目 [英] Link existing Firebase and Google Cloud projects

本文介绍了链接现有的Firebase和Google Cloud项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将我的Android应用程序从GCM迁移到FCM.
我现在将Google Cloud项目用于GCM,并将Firebase项目用于某些Firebase功能(Analytics等).
文档说,我需要将Google Cloud项目导入Firebase ,但是我的应用程序已经有了Firebase项目. 据我了解,需要提供GCM和FCM令牌兼容性.

I am trying to migrate my Android app from GCM to FCM.
I use Google Cloud project for GCM and Firebase project for some Firebase features (Analytics, etc.) now.
Docs say that I need to import Google Cloud project to Firebase, but I already have Firebase project for my app. As I understand, it is needed to provide GCM and FCM tokens compatibility.

那么,如何链接现有的Firebase和Google Cloud项目?
如果不可能,是否可以使用新的FCM端点将消息发送到旧令牌,以及应该使用哪个凭据(Google Cloud或Firebase)?

So, how to link existing Firebase and Google Cloud projects?
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?

推荐答案

所有Firebase项目也是Google Cloud项目.您无需将它们链接"在一起-它们是相同的.它们具有完全相同的配置和服务帐户.

All Firebase project are also Google Cloud projects. You don't "link" them together - they are the same. They have exactly the same configurations and service accounts.

将Firebase导入现有的Google Cloud项目时,所做的就是向其中添加Firebase API.现在,您应该可以在同一个项目中使用Firebase服务.听起来您应该像往常一样在项目中开始使用Firebase.

When you imported Firebase into your existing Google Cloud project, what you did was add Firebase APIs to it. Now you should be able to use Firebase services with your same project. It sounds like you should just start using Firebase in your project as you would normally.

除了用于发送消息的端点外,GCM和FCM后端基本相同.因此,尝试将消息发送到新端点.

The GCM and FCM backends are essentially identical, except for the endpoint that you use to send messages. So, try sending messages to the new endpoint.

这篇关于链接现有的Firebase和Google Cloud项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆