Unable to open a file in native browser

3 posts, 1 answers
  1. Pierre
    Pierre avatar
    8 posts
    Member since:
    Nov 2012

    Posted 18 Aug 2015 Link to this post

    Hi everyone !

    I know this bug was reported a lot of time, but I don't find any solution...

    What I want is simple : open a file or website in native browser from my application. I already did that into an previous application but, I don't know, this time it doesn't want to work !

    My code :

    <a onclick="window.open('http://www.google.com', '_system');">LINK</a>

    In the properties, InAppBrowser is ON. But when I click, it opens the link into my app and not into the native browser.... Cordova 3.7

    I tested it on an iPhone 3 & 5C.

    Do you have any idea ? 

    Best regards,

    Audrey

  2. Answer
    Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 21 Aug 2015 Link to this post

    Hello Audrey,

    I am not aware of any particular issues with opening an external link in the system browser on iOS when using the InAppBrowser. I attached a sample solution where I tried to replicate the issue but to no avail. Can you try to modify it to demonstrate the issue.

    My only idea about what might be causing the issue on your side is to check the iOS preferences enabled in the app - there might be something disallowing the app to open external pages in the system browser, although this is merely a wild guess.

    Regards,
    Tina Stancheva
    Telerik
     

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

     
  3. Pierre
    Pierre avatar
    8 posts
    Member since:
    Nov 2012

    Posted 05 Oct 2015 in reply to Tina Stancheva Link to this post

    Thank you for your answer, I just fogot to link Cordova.js

    <script type="text/javascript" src="../cordova.js"></script>​

Back to Top