报错情况描述:pc端与flutter通信,ios端能实现通信,安卓端通信报错
报错通信代码:
//app消息通知window.callbackName = function (res) {window?.jsBridge && window.jsBridge?.postMessage(JSON.stringify(res), "*");};
报错内容:安卓端报错
修正完代码:
//app消息通知window.callbackName = function (res) {window.jsBridge && window.jsBridge.postMessage(JSON.stringify(res)); //注意没有后面的参数了};