使用uniapp开发的小程序,在开发工具中定位都没有问题。但是使用开发工具发布后体验版、线上版本都会出现定位接口没有经纬度返回的情况。而体验版开启调试模式后,定位接口正常。
微信版本:8.0.1
机型:小米10,vivo X9
代码贴上:
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:
回答:
你没有在小程序后台配置域名呗
manifest.json里增加定位权限
清自行移步uni官方社区
是用uniapp开发的,那就去uniapp社区。
毕竟做了一层转化,不确定里面是否有bug。