HMS-FAC / BoatlaunchMVP

MVP for Boatlaunch App
Creative Commons Zero v1.0 Universal
5 stars 0 forks source link

Convert to native app using phonegap #8

Open Conorc1000 opened 8 years ago

Conorc1000 commented 8 years ago

This is a two stage process,

1) We follow this tutorial http://docs.phonegap.com/getting-started/1-install-phonegap/desktop/ to get all of the js css and html in the right file structure, by the end of this tutorial we can preview our app on a phone.

2) Then we use phonegap build to convert the files into native languages https://build.phonegap.com/apps

Conorc1000 commented 8 years ago

a good example of using multiple js files https://github.com/Pushwoosh/phonegap-3-sample-app/blob/master/www/index.html

Conorc1000 commented 8 years ago

This is not as straight forward as we thought, as the code becomes more complicated the harder it is to put all of the JS code into one file. Separating the code into multiple files is possible but we have not managed to do this for our BL project. Debugging has become more difficult as the phone gap app does not always live update as you are making changes to the code. Testing is possible with Jasmine and will be useful for debugging. We still have not got a working version of the app to be built with phonegap build, the map does not show up.

Conorc1000 commented 8 years ago

This is the repo we used to run phone gap build. https://github.com/HMS-FAC/BL-pg-build

The app that is produced does not have the a map showing up.

tormod17 commented 8 years ago

A bit late to the party but for going forward I thought this tutorial was really helpful in learning phonegap http://coenraets.org/blog/phonegap-tutorial/#comment-1940709