openSetting

uniapp有意思的api之openSetting

点击查看代码 <details> <summary>解决用户拒绝授权问题</summary> uni.openSetting({ success(res) { console.log(res.authSetting) if (res.authSetting?.scope.userInfo) { ge ......
openSetting uniapp api

如何解决小程序打开授权报错openSetting:fail can only be invoked by user TAP gesture

要解决这个问题,你需要在页面上为 openSetting 接口添加一个点击事件。根据微信小程序的文档,openSetting 接口只能通过用户点击行为(如 tap 事件)来触发。以下是一个简单的示例代码: <!-- index.wxml --> <view> <button bindtap="ope ......
openSetting invoked gesture 程序 fail
共2篇  :1/1页 首页上一页1下一页尾页