IOS:wx.switchTab跳转与onShareAppMessage无法混用
IOS所有真机,wx.switchTab跳转与onShareAppMessage无法混用,跳转后无法触发分享|转发弹窗, 由于成功回调去掉了,目前这种方式无效。就算加定时器也不行,分享多几次也会不弹出分享|转发
onShareAppMessage(res) { var shareObj = {}; const { from } = res if (from === 'menu' ) { this .collect( '点击_右上角系统分享按钮' ); shareObj = this .getShareConfig( 'default' ); } else if (from === 'button' ) { var { share } = res.target.dataset; shareObj = this .getShareConfig(share); } else { shareObj = this .getShareConfig( 'default' ); } this .collect( '打卡活动页分享点击总数' ); wx.switchTab({ url: '/pages/task/task' , }) return shareObj; } |
1 回复
麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)