uniapp开发打包小程序,定位接口没有经纬度返回?

小程序 文章 2021-03-02 12:41 305 0 全屏看文

AI助手支持GPT4.0

uniapp开发打包小程序,定位接口没有经纬度返回?Uniapp develops a packaged applet, and the positioning interface does not return the latitude and longitude?

uniapp开发打包小程序,定位接口没有经纬度返回?

使用uniapp开发的小程序,在开发工具中定位都没有问题。但是使用开发工具发布后体验版、线上版本都会出现定位接口没有经纬度返回的情况。而体验版开启调试模式后,定位接口正常。

微信版本:8.0.1

机型:小米10,vivo X9

代码贴上:

Using the small program developed by uniapp, there is no problem in positioning in the development tool. However, after the release of the development tool, the experience version and online version will have the situation that the positioning interface does not return longitude and latitude. After the debugging mode of the experience version is turned on, the positioning interface is normal. Wechat version: 8.0.1 model: Xiaomi 10, vivo x9 code pasted:

回答:

陈宇明:

是用uniapp开发的,那就去uniapp社区。

毕竟做了一层转化,不确定里面是否有bug。

💋艾雪:

你没有在小程序后台配置域名呗

Lemon@tree:好的 谢谢 我试一下吧 这个是根据经纬度返回城市名称的 不确定是不是这个
Wkiwi:

manifest.json里增加定位权限



Lemon@tree:这个有
微喵网络:

清自行移步uni官方社区

Lemon@tree:uni社区如果有解的话,我也不会过来这里来了

-EOF-

AI助手支持GPT4.0