func userContentController(_ userContentController: WKUserContentController, didReceive message: WKScriptMessage) {
let json = message.json
print("json ------- (json)")
}
In the above method, if the interface executes postMessage(signTypedMessage)
but
print("json ------- (json)")
does not execute
why ?
func userContentController(_ userContentController: WKUserContentController, didReceive message: WKScriptMessage) { let json = message.json print("json ------- (json)") } In the above method, if the interface executes postMessage(signTypedMessage) but print("json ------- (json)") does not execute why ?