Questions tagged [cordova]

Apache Cordova (formerly PhoneGap) is a framework that allows developers to create cross-platform mobile applications using web technologies like HTML, JavaScript, and CSS.

Cordova is an open-source, cross-device mobile development platform that allows developers to create mobile applications using JavaScript, HTML, and CSS that can be deployed to each device, rather than programming in each device's native language. It also provides a JavaScript library and wrapper for access to core mobile hardware like accelerometer, camera, contacts, and GPS.

Cordova was originally called PhoneGap, but after Nitobi was acquired by Adobe, the PhoneGap code was donated to Apache and the name changed to Cordova. The project officially graduated from the Apache Incubation in October 2012 and is now a top-level project within the Apache Software Foundation (ASF). Adobe still actively contributes to the project and hosts the original PhoneGap site.

A Cordova mobile application is written in JavaScript, HTML, and CSS. The JavaScript used by Cordova is framework agnostic and can easily be bundled with other popular JS frameworks like , and others. The final compiled application package (bundle) can be compiled using the vendor's SDK and deployed on to vendor's application store. Adobe also runs a service called PhoneGap Build, for which Cordova project can be submitted with minor modifications and compiled for multiple mobile platforms without the need to install the necessary SDKs locally. PhoneGap Build currently supports iOS, Android and Windows Phone 8.

The official site of the Apache Cordova project is https://cordova.apache.org/. Developer resources, documentation and samples apps can be can be found on http://www.phonegap.com/. Starting with version 3.0, Cordova is distributed primarily via and projects can be both built and compiled within that environment.

In April 2015 the registry was moved to the npm registry and the old registry will be dismissed by the end of 2015.

Cordova has varying degrees of support for different platforms. The current main platforms are iOS (iPhone and iPad), Android, BlackBerry, Firefox OS, Ubuntu, Windows Phone 8 and Windows Store. Cordova has code to support Symbian, Bada, Tizen and WebOS. An up to date list of supported platforms can be found on the Cordova wiki.

Useful Links

Documentation

Chat Room

Chat about PhoneGap and Cordova with other Stack Overflow users

Related

, , , , , , ,

61249 questions
286
votes
10 answers

Is there a difference between PhoneGap and Cordova commands?

I just installed Phonegap for the first time and just browsed through the docs. What confuses me is the fact that some docs are using the command "phonegap" and some "cordova". Android platform guide: $ cordova create hello com.example.hello…
Hexodus
  • 9,856
  • 5
  • 42
  • 61
269
votes
5 answers

jQuery Mobile: document ready vs. page events

I am using jQuery Mobile, and I am having trouble understanding differences between classic document ready and jQuery Mobile page events. What is the real difference? Why should $(document).ready() { }); be better…
user2001897
  • 3,596
  • 5
  • 15
  • 11
263
votes
6 answers

Xamarin 2.0 vs Appcelerator Titanium vs PhoneGap

After all IDE evolutions (all platforms on topic are changed) of this year, i'm looking to understand what is the state of technology for those platforms. What are strengths and weaknesses of each ones? There are some limitations of one of those…
Valerie Linc
  • 2,801
  • 3
  • 11
  • 10
252
votes
23 answers

Error: ANDROID_HOME is not set and "android" command not in your PATH. You must fulfill at least one of these conditions.

I'm trying to install PhoneGap and I'm getting the following error: Error: ANDROID_HOME is not set and "android" command not in your PATH. You must fulfill at least one of these conditions. Error (screenshot) What do I do to ensure Android is set…
rrvasanth
  • 2,551
  • 2
  • 12
  • 9
204
votes
24 answers

Error: Could not find gradle wrapper within Android SDK. Might need to update your Android SDK - Android

I know there are lots of questions similiar to this one, but i couldn't find a solution for my problem in any of those. Besides, I'll provide details for my specific case. I coded an Ionic project in Ubuntu 16.04 LTS, and now I have to build it for…
rbenvenuto
  • 2,345
  • 2
  • 10
  • 19
197
votes
9 answers

External resource not being loaded by AngularJs

Using Angular and Phonegap, I'm trying to load a video that is on a remote server but came across an issue. In my JSON, the URL is entered as a plain HTTP URL. "src" : "http://www.somesite.com/myvideo.mp4" My video template
181
votes
12 answers

How do I correctly detect orientation change using Phonegap on iOS?

I found this orientation test code below looking for JQTouch reference material. This works correctly in the iOS simulator on mobile Safari but doesn’t get handled correctly in Phonegap. My project is running into the same issue that is killing this…
ajpalma
  • 1,813
  • 2
  • 12
  • 5
180
votes
43 answers

PANIC: Broken AVD system path. Check your ANDROID_SDK_ROOT value

After typing cordova run android in terminal, I'm getting this error: Waiting for emulator to start... PANIC: Broken AVD system path. Check your ANDROID_SDK_ROOT value [/Users/username/Library/Android/sdk]! This happens after exporting: export…
d.boyd
  • 1,861
  • 2
  • 7
  • 6
176
votes
10 answers

How to create a signed APK file using Cordova command line interface?

I made a sample application named checkStatus. Now I want to create a signed APK file. So I can install it in different devices for my testing. For this, I Googled and found this documentation. As per the document, I switched to my project directory…
vasan
  • 2,113
  • 3
  • 15
  • 22
174
votes
24 answers

ionic 2 - Error Could not find an installed version of Gradle either in Android Studio

I create ionic 2 project and add diagnostic cordova plugin like this : ionic plugin add cordova.plugins.diagnostic npm install --save @ionic-native/diagnostic and add android platform like this : ionic platform add android@latest but when build…
Reza Mazarlou
  • 2,558
  • 2
  • 18
  • 28
159
votes
16 answers

Application Error - The connection to the server was unsuccessful. (file:///android_asset/www/index.html)

App Dies On Startup (connection to the server was unsuccessful) I have an Android application that I'm writing using PhoneGap BUILD. The app was working fine earlier, but now it seems I am getting this error after refining my app (some UI changes…
user1654414
159
votes
10 answers

How To Save Canvas As An Image With canvas.toDataURL()?

I'm currently building a HTML5 web app/Phonegap native app and I can't seem to figure out how to save my canvas as an image with canvas.toDataURL(). Can somebody help me out? Here's the code, what's wrong with it? //My canvas was named…
Wardenclyffe
  • 1,911
  • 3
  • 17
  • 17
152
votes
4 answers

HTML5 LocalStorage: Checking if a key exists

Why this does not work ? if(typeof(localStorage.getItem("username"))=='undefined'){ alert('no'); }; The goal is to redirect the user from the index page to the login page if not already logged. Here the localStorage.getItem("username"))…
Gabriel
  • 1,771
  • 2
  • 10
  • 17
149
votes
19 answers

Why am I seeing net::ERR_CLEARTEXT_NOT_PERMITTED errors after upgrading to Cordova Android 8?

After upgrading to Cordova Android 8.0, I am seeing net::ERR_CLEARTEXT_NOT_PERMITTED errors when trying to connect to http:// targets. Why is that and how can I resolve this?
Der Hochstapler
  • 19,560
  • 15
  • 87
  • 126
139
votes
7 answers

Error executing command 'ant' on Mac OS X 10.9 Mavericks when building for Android with PhoneGap/Cordova

Today I tried PhoneGap/Cordova with Mac OS X Mavericks. Building for iOS went just fine, but building for Android wasn't without some guesswork. I installed Android 4.2.2 via the Android SDK Manager (I had to use the older API v17 since it wasn't…
Mobiletainment
  • 18,477
  • 9
  • 70
  • 90
1
2 3
99 100