canOpenURL: failed for URL (beta InAppWebBrowser206)

Welcome! Forums Unity Plugins In-App Web Browser canOpenURL: failed for URL (beta InAppWebBrowser206)

This topic contains 1 reply, has 2 voices, and was last updated by Piotr Piotr 3 weeks, 3 days ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1656

    thomasfaget
    Participant

    Hello

    I am using a beta version of the IOS plugin of InAppBrowser (found here ) and the communication between Javascript and Unity is not working anymore.

    In the IOS log, I have this error message :

    `canOpenURL: failed for URL: “inappbrowserbridge://msg” – error: “This app is not allowed to query for scheme inappbroswerbridge”

    And the communication Javascript/Unity works fine with the store version of the asset, but with the beta version I have this error message.

    Thank you for support 🙂

    • This topic was modified 1 month, 1 week ago by  thomasfaget.
    • This topic was modified 1 month, 1 week ago by  thomasfaget.
    • This topic was modified 1 month, 1 week ago by  thomasfaget.
    #1665
    Piotr
    Piotr
    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’);

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.