cordova-template
v0.0.3
Published
Cordova template
Downloads
3
Readme
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
- Delete the app from the device if
config.xml
has been changed. iOS apps just dies sometimes whenconfig.xml
has changed (even if the android part was changed).