How to monitor the pop-up box event when obtaining the authorization of location information on Wechat browser?

recently, my test girl gave me a hot BUG:
Wechat. When Amap is called to get location information, an authorization pop-up box automatically pops up, as shown in figure

WIFI^^
4G:

2.5sgeolocationtimeout2.5s:


.

I just want to ask why the location can be accurately located without authorization (waiting for a long time before authorization) in wifi, but failed in 4G, and can only be located successfully by re-clicking to refresh the map.

another: that is the pop-up box of Wechat to determine whether the event of the button can be monitored? My idea is that if I really can"t find the difference between the two, then I will directly monitor the click event of the authorization pop-up box, and then manually refresh the map
ask the god to advise

Mar.11,2021

this currently cannot be monitored. The previous project also encountered this problem. You need to call Wechat's api to obtain latitude and longitude, and then use Gaode or Baidu map to locate

.
Menu