Reply To: Back Button In front of page

Welcome! Forums Unity Plugins In-App Web Browser Back Button In front of page Reply To: Back Button In front of page

#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());       
    }