Welcome! › Forums › Unity Plugins › In-App Web Browser › Back Button In front of page › Reply To: Back Button In front of page
July 17, 2017 at 12:32 pm
#292
Zeldarck
Participant
So, the message is effectivily send with
function sendMessageToUnity(message) {
if (isIOS()) {
appendIframeWithURL('inappbrowserbridge://' + message);
} else if (isAndroid()){
UnityInAppBrowser.sendMessageFromJS(message);
}
}
but my callback is not call:
bridge.onJSCallback.AddListener((string s) => OnCloseBrowser());
public void OnCloseBrowser()
{
StartCoroutine(CloseYouTubeVideo());
}