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.
I am using the cordova 6.0, here is my solution:
1: Install this cordova plugin.
cordova plugin add cordova-plugin-inappbrowser
2: add the open link in the html like following.
Google
3: this is the most importaint step due to this I faced lots of issue:
download the cordova.js
file and paste it in the www
folder.
Then make a reference of this in the index.html
file.
This solution will work for both the environment android and iPhone.