随着HarmonyOS的加入,华为设备无法获得来自谷歌的地图。如果我加上华为为其设备创建的地图,它将无法与Android兼容。有什么想法吗?
发布于 2021-12-30 07:40:24
您可以使用此插入式来确定您的手机是否为华为设备。该方法返回指示设备上HMS核心状态的状态代码。
HMSAvailability.isHuaweiMobileServicesAvailable()
.then((res) => { console.log(JSON.stringify(res)) })
.catch((err) => { console.log(JSON.stringify(err)) });https://stackoverflow.com/questions/70525174
复制相似问题