Phonegap - How To Open External Link Inside The App
I'm stuck. I'm working on a iOS phonegap app. On my homepage I have a link
Solution 1:
You can push it to browser using this javascript snip,
window.open("http://yourexternallink.com","_system");
Even if you have inAppBrowser installed, this will take you to browser..
If you wish to open the link inside your app, you need below snippet,
var onInApp = window.open('http://paymentpage.com', '_blank', 'location=no,hidden=yes,closebuttoncaption=Done,toolbar=no');
make sure that you added cordova plugin add cordova-plugin-inappbrowser
plugin..
Solution 2:
Use inApp Browser link
The InAppBrowser is a web-browser that is shown in your app when you use the window.open call.
in ios add
<plugin name="InAppBrowser" value="CDVInAppBrowser" />
to config.xml
and just call window.open('http://apache.org', '_blank', 'location=yes');
etc.. more info link
Post a Comment for "Phonegap - How To Open External Link Inside The App"