This is a migrated thread and some comments may be shown as answers.

Unable to open a file in native browser

2 Answers 43 Views
Report a bug
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Pierre
Top achievements
Rank 1
Pierre asked on 18 Aug 2015, 02:35 PM

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 Answers, 1 is accepted

Sort by
0
Accepted
Tina Stancheva
Telerik team
answered on 21 Aug 2015, 08:05 AM
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.

 
0
Pierre
Top achievements
Rank 1
answered on 05 Oct 2015, 08:48 AM

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

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

Tags
Report a bug
Asked by
Pierre
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Pierre
Top achievements
Rank 1
Share this question
or