Launch App from browser

Thread is closed for posting
2 posts, 0 answers
  1. Sagi
    Sagi avatar
    61 posts
    Member since:
    Sep 2008

    Posted 15 May 2016 Link to this post

    I'm trying to launch my app in case it is installed and fallback to my website if tbe the app does not exist. (got some insights from  :

    I was able to launch the app using custom url scheme , but was only able to so when there is user interaction (e.g. user clicks a button/link) :

         <a onclick="'myapp://foo=bar', '_system')">Launch myapp</a>

    However When using'myapp://foo=bar', '_system');


     window.location = 'myapp://foo=bar'

    without user interaction (e.g. on window load / document ready) the app does not launch.

    Is this expected ?

    Any workarounds ?

  2. Garo
    Garo avatar
    157 posts

    Posted 18 May 2016 Link to this post

    Hello Sagi,

    I am afraid the case you are describing cannot be achieved due to browser restrictions. Attempting to invoke without user interaction(click event) will be blocked by the browser for security purposes.

    This being said, I am not aware of any workarounds you can use to reach the desired effect. Please have in mind that even if a workaround exists it will most likely be browser-specific and not a general solution.

    I hope this helps.


    Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

Back to Top