I\'m trying to open links in Safari (on an iPhone) from a PhoneGap application. I\'m using PhoneGap version 3.1.0, and use PhoneGap Build, to build the application.
Late answer but maybe it will be helpful for someone. So what I have in my working code in both iOS and Android application based on Cordova. To open external link in the default browser (Safari or Google):
1) Make sure that you have inAppBrowser plugin
cordova plugin add cordova-plugin-inappbrowser --save
2) Add to device.js
function openURL(urlString){
let url = encodeURI(urlString);
window.open(url, '_system', 'location=yes');
}
3) Create new link
Go to Google