小程序
小游戏
企业微信
微信支付
扫描小程序码分享
就是当用户勾选了总是选项后 如何让小程序恢复到总是弹窗提醒授权的状态
4 个回答
加粗
标红
插入代码
插入链接
插入图片
上传视频
https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/subscribe-message.html
注意事项
用户勾选 “总是保持以上选择,不再询问” 之后,下次订阅调用 wx.requestSubscribeMessage 不会弹窗,保持之前的选择,修改选择需要打开小程序设置进行修改。
=========================================================
https://developers.weixin.qq.com/miniprogram/dev/api/open-api/setting/wx.getSetting.html
功能描述
获取用户的当前设置。返回值中只会出现小程序已经向用户请求过的权限。
https://developers.weixin.qq.com/miniprogram/dev/api/open-api/setting/SubscriptionsSetting.html
示例代码wx.getSetting({ withSubscriptions: true, success (res) { console.log(res.authSetting) // res.authSetting = { // "scope.userInfo": true, // "scope.userLocation": true // } console.log(res.subscriptionsSetting) // res.subscriptionsSetting = { // mainSwitch: true, // 订阅消息总开关 // itemSettings: { // 每一项开关 // SYS_MSG_TYPE_INTERACTIVE: 'accept', // 小游戏系统订阅消息 // SYS_MSG_TYPE_RANK: 'accept' // zun-LzcQyW-edafCVvzPkK4de2Rllr1fFpw2A_x0oXE: 'reject', // 普通一次性订阅消息 // ke_OZC_66gZxALLcsuI7ilCJSP2OJ2vWo2ooUPpkWrw: 'ban', // } // } } })
你好,麻烦通过点击下方“反馈信息”按钮,提供出现问题的。
参考文档:https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/subscribe-message.html
恢复不了。勾选过“总是”选项后,就不会再弹窗询问了。
找到了办法了 在手机端删除小程序使用记录 然后等待微信自动清理就行了
关注后,可在微信内接收相应的重要提醒。
请使用微信扫描二维码关注 “微信开放社区” 公众号
https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/subscribe-message.html
注意事项
用户勾选 “总是保持以上选择,不再询问” 之后,下次订阅调用 wx.requestSubscribeMessage 不会弹窗,保持之前的选择,修改选择需要打开小程序设置进行修改。
=========================================================
https://developers.weixin.qq.com/miniprogram/dev/api/open-api/setting/wx.getSetting.html
功能描述
获取用户的当前设置。返回值中只会出现小程序已经向用户请求过的权限。
=========================================================
https://developers.weixin.qq.com/miniprogram/dev/api/open-api/setting/SubscriptionsSetting.html
注意事项- itemSettings 只返回用户勾选过订阅面板中的“总是保持以上选择,不再询问”的订阅消息。
示例代码wx.getSetting({ withSubscriptions: true, success (res) { console.log(res.authSetting) // res.authSetting = { // "scope.userInfo": true, // "scope.userLocation": true // } console.log(res.subscriptionsSetting) // res.subscriptionsSetting = { // mainSwitch: true, // 订阅消息总开关 // itemSettings: { // 每一项开关 // SYS_MSG_TYPE_INTERACTIVE: 'accept', // 小游戏系统订阅消息 // SYS_MSG_TYPE_RANK: 'accept' // zun-LzcQyW-edafCVvzPkK4de2Rllr1fFpw2A_x0oXE: 'reject', // 普通一次性订阅消息 // ke_OZC_66gZxALLcsuI7ilCJSP2OJ2vWo2ooUPpkWrw: 'ban', // } // } } })
用户勾选 “总是保持以上选择,不再询问” 之后,下次订阅调用 wx.requestSubscribeMessage 不会弹窗,保持之前的选择,修改选择需要打开小程序设置进行修改。
参考文档:https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/subscribe-message.html
恢复不了。勾选过“总是”选项后,就不会再弹窗询问了。
找到了办法了 在手机端删除小程序使用记录 然后等待微信自动清理就行了