华为设备上的Firebase远程配置/实时数据库 [英] Firebase Remote Config/Realtime database on Huawei devices

本文介绍了华为设备上的Firebase远程配置/实时数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所有适用于Android的Firebase服务是否无法在华为上运行,还是仅仅是云消息服务无法正常工作?所有Firebase服务都依赖于Google Play服务吗?

Are all of the Firebase services for Android unable to work on Huawei or is it just the cloud messaging service that does not work? Do all of the firebase services rely on Google Play Services?

推荐答案

Firebase SDK 可以分为三个类别:

  1. 需要Play服务-这些SDK需要Google Play服务,否则它们将无法使用.

  1. Play services required — These SDKs require Google Play services, otherwise they have no functionality.

推荐的Play服务-这些SDK需要Google Play服务具有完整的功能,但是即使没有Google Play服务,它们仍然提供大多数功能.

Play services recommended — These SDKs require Google Play services to have full functionality, but they still offer most functionality even without Google Play services.

不需要Play服务-这些SDKS不需要Google Play服务具有全部功能.

Play services not required — These SDKS do not require Google Play services to have full functionality.

不需要Google Play服务的Firebase SDK列表

您需要包含Google Play服务的Firebase SDK列表

远程配置SDK com.google.firebase:firebase-config:20.0.0不需要Google Play服务.

Remote Config SDK com.google.firebase:firebase-config:20.0.0 doesn't require Google Play Services.

实时数据库SDK com.google.firebase:firebase-database:19.5.1 不需要Google Play服务. 但是请记住,实时数据库取决于Firebase Auth(它需要经过身份验证的用户才能工作),而后者取决于Google Play服务.为此,您可以使用Firebase Auth REST API代替Firebase Auth SDK.

Realtime Database SDK com.google.firebase:firebase-database:19.5.1 doesn't require Google Play Services. But keep in mind that Realtime Database depends on Firebase Auth (it needs an authenticated user to work) which depends on Google Play Services. For that you can use Firebase Auth REST API instead of Firebase Auth SDK.

有关更多信息,请使用Firebase身份验证,而无需Google Play服务

更新2020年10月27日:

Firebase Auth SDK v20.0.0 com.google.firebase:firebase-auth:20.0.0不需要Google Play服务.

Firebase Auth SDK v20.0.0 com.google.firebase:firebase-auth:20.0.0 doesn't require Google Play Service.

这篇关于华为设备上的Firebase远程配置/实时数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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