wx.getLocation 一直fail?,频繁调用会增加电量损耗...

小程序 文章 2021-03-09 14:21 2179 0 全屏看文

AI助手支持GPT4.0

wx.getLocation 一直fail?,频繁调用会增加电量损耗...wx.getLocation keeps failing? Frequent calls will increase battery consumption...

wx.getLocation 一直fail?,频繁调用会增加电量损耗...

errMsg: "getLocation:fail 频繁调用会增加电量损耗,可考虑使用 wx.onLocationChange 监听地理位置变化",

今日开始一直报这个问题正式环境没有,只有测试环境有这样的问题。有人遇到这样的问题吗?怎样解决?

errMsg: "ge tLocation:fail Frequent call will increase power consumption, so it can be considered to use wx.onLocationChange Monitoring geographic location changes "has been reporting this problem since today. There is no official environment, only the test environment has such a problem. Does anyone have such a problem? How to solve it?

回答:

hp:

同样的问题, wx.getLocation如果不能频繁使用, 文档也应该给一个建议间隔时间吧, 直接返回报错会影响我们的业务流程


梦无忧思:

帮忙看一下呀,本地测试 15 s内重复调用获取地理位置就会报错,考虑一下引用三方库导致的重复调用嘛,尽快处理一下吧

Sword:

一样的,体验版就报,靠,下次提交不知道会不会报

空蝉:

我们也是今天早上开始报这样的错误,求官方解决

空蝉:本地调用15s内重复调用都会失败
Lmmmmc:

被坑死了,我这马上上线了,突然发现这个问题,文档也没有关于频繁调用的描述啊


梁钧:

位置获取api是不是有调整啊,官方的哥哥姐姐们帮忙看下呀。第二次获取都在报错了

-EOF-

AI助手支持GPT4.0