没有Google凭证的Firebase Cloud Messaging [英] Firebase Cloud Messaging without google credentials

查看:79
本文介绍了没有Google凭证的Firebase Cloud Messaging的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个android应用程序,我想在其中插入一个聊天记录.我读到可以使用FCM(Firebase云消息传递)进行聊天,但是我想知道一件事:是否可以使用FCM而不用我的应用程序上的Google凭据登录?

I'm developing an android app and I want to insert a chat into it. I read I could use FCM(Firebase Cloud Messaging) to develop the chat, but I want to know one thing: is it possible to use FCM without logging in with google credentials on my app?

推荐答案

Firebase实时数据库可与Firebase云消息传递一起用于创建聊天应用程序.但是,如果要保护数据库安全,则需要某种形式的身份验证.

Firebase realtime db can be used to create chat apps in tandem with usage of Firebase cloud messaging. However if you want to keep the DB safe and secured, you will need some form of Authentication.

这不一定必须是Google身份验证.查看Firebase Auth及其支持的方法.

This does not necessarily have to be google auth. Check out Firebase Auth and the methods they support.

或者,您可以使用Google oauth api生成Auth令牌,并将其与Firebase REST API一起使用,而不必使用Firebase auth.

Alternatively, you can use Google oauth apis to generate an Auth token and use them with Firebase REST apis and not have to use Firebase auth.

摘要:是的,您可以使用Firebase RTDB和FCM构建聊天应用程序,而无需使用Google身份验证或任何身份验证.但是建议使用一些Auth(Firebase身份验证,Google oauth,Twitter oauth或Facebook oauth就是这样的示例)

Summary: Yes you can build the chat app with Firebase RTDB and FCM without google auth or any auth. But it's advisable to use some for of Auth (Firebase auth, Google oauth, Twitter oauth or Facebook oauth are such examples)

这篇关于没有Google凭证的Firebase Cloud Messaging的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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