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
0answers
123 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 ...
2
votes
0answers
192 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 ...
0
votes
2answers
1k views

Multilanguage Support in Apache Cordova [closed]

I currently have a languages.js set up as such: ...
2
votes
1answer
101 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 ...
1
vote
2answers
444 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 ...
2
votes
1answer
217 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: <...
7
votes
1answer
1k 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 ...
3
votes
1answer
160 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, ...
8
votes
1answer
564 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" ...
2
votes
1answer
82 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: ...
5
votes
1answer
2k 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 ...
1
vote
2answers
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 (...
10
votes
1answer
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 ...
4
votes
1answer
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? ...
3
votes
1answer
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 ...