cordova-template

0.0.3 • Public • Published

Gizurs Cordova template

Has local and remote logging configured.

Pre-requisites

NodeJS and bower are used in addition to Cordova.

Setup

Install dependencies:

npm install
cd www; bower install; cd ..
cordova plugin add cordova-plugin-console
cordova plugin add cordova-plugin-device
cordova plugin add cordova-plugin-splashscreen

Add the platforms you are using (it is tested on ios and android): cordova platform add ios|android|browser

Run the app

Start the local logging server: node node_modules/simple-logserver/log-server.js Test that the logging works: curl -d 'Hi there' http://[IP]:8126

Create www/js/config.js using the template. Update with the IP-address of the logging server.

iOS:

cordova run ios --list
cordova run ios --target"SELECT ONE FROM THE LIST"

Android:

cordova run ios --list
cordova run ios --target"SELECT ONE FROM THE LIST"

Check that the log server shows the start log messages. Also test to put app in the background and make sure that onPause and onResume is shown in the log. The iOS system log is available in the Simulator under Debug and adb logcat can be used in Android.

Troubleshooting

  1. Delete the app from the device if config.xml has been changed. iOS apps just dies sometimes when config.xml has changed (even if the android part was changed).

Readme

Keywords

Package Sidebar

Install

npm i cordova-template

Weekly Downloads

0

Version

0.0.3

License

ISC

Last publish

Collaborators

  • colmsjo