Welcome! › Forums › Unity Plugins › In-App Web Browser › canOpenURL: failed for URL (beta InAppWebBrowser206) › Reply To: canOpenURL: failed for URL (beta InAppWebBrowser206)
September 23, 2019 at 12:38 pm
#1665

Keymaster
Hi,
Sorry for late response. This is breaking change I mentioned – there is new way of communicating (hopefully easier than before).
Here are some details:
Sending message from JavaScript to Unity
Android
Put that line in your JS script:
UnityInAppBrowser.sendMessageFromJS(‘your message goes here’);
iOS
webkit.messageHandlers.UnityInAppBrowser.postMessage(‘your message goes here’);