huawei-mobile-services - 此设备上没有可用的 Google 服务

标签 huawei-mobile-services

我正在尝试将 HMS 套件(即位置、广告等)集成到我的应用程序中,以便我也可以将应用程序启动到 appGallery 中。 但是,我也将react-native-firebase用于其他服务。现在,我收到警报/对话框说: “此设备中没有可用的 Google 服务...”´

如何解决这个问题?有什么办法可以避免出现此消息吗?

最佳答案

确实,Google 禁令后发布的华为手机不支持 GMS。但是,如果您只是想在 RN 中抑制此对话框,提示“此设备中没有可用的 google 服务...”,可以通过关闭 Google Play 服务可用性错误来实现:

firebase.utils().errorOnMissingPlayServices = false;
firebase.utils().promptOnMissingPlayServices = false;

了解更多信息请访问this链接。

关于huawei-mobile-services - 此设备上没有可用的 Google 服务,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64692393/

相关文章:

huawei-mobile-services - (Flutter)华为定位套件-经纬度null

android - Branch IO 华为集成

geolocation - 如何解决华为设备上应用程序位置权限错误?

android - R(android) 到 HarmonyOs 以及 Displaymetrics 到 HarmonyOS 的替代包以及一些常量是什么?

android - Google Play 不接受任何依赖华为的应用程序包

android - 获取华为mapkit中我的位置按钮的引用

react-native - 有没有办法使用HMS Toolkit云调试测试React Native项目?

java - 将应用程序添加到华为 protected 应用程序(检查自动运行)

java - android.app.RemoteServiceException : Bad notification posted on huawei Y6

huawei-mobile-services - 需要华为应用程序库中应用发布格式的信息