You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ajax用flyio实现时会报错:requestSubscribeMessage:fail can only be invoked by user TAP gesture(开发者工具以及真机调试都报错),如果用原生或者 minapp-api-promise则不会,测试发现是内部setTimeout导致的,等于到了下个宏任务才执行,目前看来这触发了wx.requestSubscribeMessage判断是否用户真实点击的机制
操作路径:用户点击回调 -> await ajax -> wx.requestSubscribeMessage
ajax用flyio实现时会报错:requestSubscribeMessage:fail can only be invoked by user TAP gesture(开发者工具以及真机调试都报错),如果用原生或者 minapp-api-promise则不会,测试发现是内部setTimeout导致的,等于到了下个宏任务才执行,目前看来这触发了wx.requestSubscribeMessage判断是否用户真实点击的机制
导致问题代码:
setTimeout(function () {
engine.send(needQuery ? null : data);
}, 0);
The text was updated successfully, but these errors were encountered: