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
399 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 ...
Hans Dash's user avatar
  • 129
2 votes
0 answers
242 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 ...
Sarah'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: ...
Jud's user avatar
  • 177
2 votes
1 answer
132 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
459 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 ...
TemporaryName's user avatar
2 votes
1 answer
240 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: <...
parth's 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 ...
inspired's user avatar
  • 323
3 votes
1 answer
169 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, ...
tribet's user avatar
  • 481
8 votes
1 answer
644 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" ...
tribet's user avatar
  • 481
2 votes
1 answer
85 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: ...
Brian's 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
2 votes
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 (...
Matthijs's user avatar
  • 153
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 ...
SoI's user avatar
  • 175