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

How to create in app browser.

1 Answer 103 Views
Apache Cordova
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
tundecanhelp
Top achievements
Rank 2
tundecanhelp asked on 07 Apr 2014, 06:31 PM
I am trying to create an app that loads up a url using the in app browser plugin as soon as the app loads.

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 08 Apr 2014, 03:27 PM
Hi Tunde,

I would recommend examining the InAppBrowser sample that demonstrates how to use the Apache Cordova InAppBrowser API to open web pages. Although the sample demonstrates opening a web page on a button click, you can implement the logic when the device is ready instead:
document.addEventListener('deviceready', function () {
    externalUrl = "http://www.telerik.com";
    window.open(externalUrl, "_system");
}, false);
This will ensure that the external web page is opened as soon as the application loads on your mobile device. Please give this a try and let me know if it helps.

Regards,
Tina Stancheva
Telerik
 

Share what you think about AppBuilder and Telerik Platform with us in our feedback portal, so we can become even better!

 
Tags
Apache Cordova
Asked by
tundecanhelp
Top achievements
Rank 2
Answers by
Tina Stancheva
Telerik team
Share this question
or