PhoneGap: Opening external URL’s in Safari

The best way to open links in a new URL is actually with Just set the target as “_system”:“”, “_system”); Before I found this in the docs, I actually wrote a plugin to do the same. I’m going to leave this answer here, because this would give you much more granular control over … Read more

Cordova, why would InAppBrowser plugin be required to open links in system browser

So I’m answering my own question with what I’ve found out. Note I’m only dealing with iOS and Android (with Crosswalk plugin) on Cordova 5.1.1, and it may not apply to other platforms/versions. InAppBrowser is required Even if you don’t need an embedded browser, InAppBrowser plugin is required. This makes the _system target available that … Read more

CORS and phonegap apps

PhoneGap you can just XHR directly to remote servers and it should “just work”. Cross-domain policy does not apply to PhoneGap (for a variety of reasons, basically because your app is essentially running off the file:// URI on-device). Please be aware that you will have to set up a whitelist for your apps to access … Read more

How to use Google Analytics with Phonegap without a plugin?

Check out the video to see it in action: After some research, I found a solution. I came across this thread on the Phonegap Google Group:!msg/phonegap/uqYjTmd4w_E/YD1QPmLSxf4J (thanks TimW and Dan Levine!) In this thread I found that it is possible to use Google Analytics without a plugin. All you have to do is … Read more

Is there a difference between PhoneGap and Cordova commands? I think this url explains what you need. Phonegap is built on Apache Cordova nothing else. You can think of Apache Cordova as the engine that powers PhoneGap. Over time, the PhoneGap distribution may contain additional tools and thats why they differ in command But they do same thing. EDIT: Extra info added as … Read more