微信小程序自定义组件中按钮绑定分享,分享结果回调方法无效?
代码片段
onShareAppMessage: function () { return { title: ‘postDetail.info.postTitle’, path: ‘/pages/index/index’, success: function (res) { // 转发成功 wx.showToast({ title: “分享成功”, duration: 1000, icon: “success” }) }, fail: function (res) { wx.showToast({ title: “分享失败”, duration: 1000, icon: “success” }) } } },
请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。
现在分享之后不会走成功的回调的,现在不能知道用户是否分享出去了,这个微信挺早就改了这个逻辑