Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70429

Link to external page when application is started

$
0
0

@flix101 wrote:

Hy,
I've set up a new project in VS2015. I've also added the InAppBrowser plugin which works very well.

When I add this to my app.js file

document.addEventListener("deviceready", onDeviceReady, false);

function onDeviceReady() {
// Now safe to use the Codova API
cordova.InAppBrowser.open('http://apache.org', '_blank', 'location=no');
}

the external site is loaded. But when I use the "back" button on my Android phone I get back to the index.html file of my app itself. thats very fine in my other project but not very cool at this one because I don't need them here. I just want to load the external page and If it is closed the whole app should be closed too.

What I'm doing wrong?

thank you
flix

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70429

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>