Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [cordova]

Apache Cordova is a set of device APIs that allow a mobile app developer to access native device function such as the camera or accelerometer from JavaScript. Combined with a UI framework such as jQuery Mobile or Dojo Mobile or Sencha Touch, this allows a smartphone app to be developed with just HTML, CSS, and JavaScript.

Filter by
Sorted by
Tagged with
2 votes
0 answers
364 views

Simple jumping game: continue with jquery or switch to html5 canvas?

I'm coding for fun with the secret ambition of making a fun little game for mobile. So I started out building this little jumping game with Javascript and jQuery. The game relies heavy on css ...
user avatar
  • 129
2 votes
0 answers
236 views

AngularJS application for working with the Facebook API (using the cordova-plugin-facebook4 plugin)

I'm creating an application with AngularJS, and packaging it up with the Phonegap build. I'm using the facebook API (phonegap cordova-plugin-facebook4) for user authentication and getting a user's ...
user avatar
  • 401
0 votes
2 answers
2k views

Multilanguage Support in Apache Cordova [closed]

I currently have a languages.js set up as such: ...
user avatar
  • 177
2 votes
1 answer
119 views

Synchronising data with AJAX calls

I'm developing a mobile app with Cordova, jQuery and jQuery mobile. To synchronise the data saved on a device I make AJAX calls to a server (I'm sending and ...
user avatar
1 vote
2 answers
451 views

Static single page app with routing

I'm currently trying to write an app with Cordova and ReactJS. I haven't used ReactJS before, so I'm very confused by the mixed usage of Babel, JavaScript and JSX. I try to use JSX where I can because ...
user avatar
2 votes
1 answer
231 views

Angular JSON weather app

I'm pretty new to Angular. I wrote a weather app and need my code reviewed. I especially need help on best practices for handling edge cases on the response from the JSON endpoint. Here's the HTML: <...
user avatar
  • 21
7 votes
1 answer
2k views

AngularJs Module Run Block, Configuration, and Route Definition

My AngularJs app is currently working fine. I'm working on modularity, refining my code design, and making it more readable. I have a app.js file that contains the ...
user avatar
  • 323
3 votes
1 answer
165 views

Angular controller without single responsability

I'm new in cordova / angularJS and I wonder how much responsibility a controller can have. This particular one validates users entry data, display messaging, takes pictures calling the camera API, ...
user avatar
  • 481
8 votes
1 answer
631 views

Two AngularJS controllers for camera actions

I have the same functionality in two controllers and I want to refactor to place it in a shared method that both controllers can access. I was thinking on creating a separate service called "Camera" ...
user avatar
  • 481
2 votes
1 answer
83 views

ngCordova plugin for audio player

I wrote a Cordova plugin for an app that I'm working on, and now I'm trying to write an Angular definition to wrap my plugin. So far, I've followed the model in ng-cordova.js: ...
user avatar
  • 433
5 votes
1 answer
3k views

Nested SQLite transactions in jQuery

I'm using Cordova with jQuery and jQuery Mobile to develop a hybrid app. In this app I need to save data that I get from a server. The data is a ...
user avatar
1 vote
2 answers
2k views

Lightweight localization for a Cordova app

I had been trying to find a suitable solution to implement localization in my Phonegap/Cordova application. My search proved that any localization through seperate .xml or .json files was a nightmare (...
user avatar
  • 143
10 votes
1 answer
1k views

Cordova file management

I am making an application using Phonegap where users can select and share files. When the user selects it, even if it goes offline or closes the app, I should upload it back to the server, so I need ...
user avatar
  • 175
4 votes
1 answer
4k views

Speed up slow loading images?

I have the following jquery mobile + phonegap app. I'm finding when I load the app, the images in the separate pages load pretty slowly. Any advice on how to speed up loading this app? ...
user avatar
  • 141
3 votes
1 answer
475 views

Improving PhoneGap/JavaScript application

I have a PhoneGap application that I wrote some time ago. After looking Doug Crockford's video seminar JavaScript: The Good Parts. I was just wondering if the code could be improved for better ...
user avatar
  • 183