什么情况下wx.getLocation不会弹出授权窗口?

小程序 文章 2022-03-26 12:40 827 0 全屏看文

AI助手支持GPT4.0

什么情况下wx.getLocation不会弹出授权窗口?Under what circumstances will wx.getLocation not pop up the authorization window?

什么情况下wx.getLocation不会弹出授权窗口?

已经在app.json加了这个,为什么调用wx.getLocation不会弹出,会有 errMsg: "getLocation:fail auth deny" 这个报错的

"permission": {    "scope.userLocation": {     "desc": "你的位置信息将用于小程序位置接口的效果展示"   }}

Already on app JSON added this, why call Wx Getlocation will not pop up. There will be errmsg: "getlocation: fail auth deny", which is an error reporting "permission": {"scope. Userlocation": {"desc": "your location information will be used for the effect display of applet location interface"}}

回答:

店商牛~黄兴:

暂只针对国内主体如下类目的小程序开放,需要先通过类目审核,再在小程序管理后台,「开发」-「开发管理」-「接口设置」中自助开通该接口权限。 接口权限申请入口将于2022年3月11日开始内测,于3月31日全量上线。并从4月18日开始,在代码审核环节将检测该接口是否已完成开通,如未开通,将在代码提审环节进行拦截。

老张:

1、用户曾经拒绝过,不会再弹。

Cyrus:

为啥我新建代码片段是可以的,在另一个小程序又不行

-EOF-

AI助手支持GPT4.0