小程序webview中的H5页面调用navigateTo打开其他小程序页面,在有些情况下会失败,报错信息:invokeMiniProgramAPI:can not run in current browser environment是什么原因呢?全都是iOS
Mozilla/5.0 (iPhone; CPU iPhone OS 15_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.41(0x1800292c) NetType/WIFI Language/zh_CN miniProgram/wxxx
import wx from "weixin-js-sdk";
wx.miniProgram.redirectTo({
url: prefix + scheme,
success(data) {
successCallback(data)
},
fail(err) {
failCallback(err)
}
})