LICENSE: CC0 (public domain) ref: http://creativecommons.org/publicdomain/zero/1.0/
Inspiration:
FUTURE TBD:
- cover both
cordova
CLI andphonegap
CLI and test - Document the actual shell commands for the steps below
TBD
- Cordova CLI installed
- Ability use the Cordova CLI to:
- create an app (using the default template);
- run it with no plugins;
- run it on any desired target platform(s)
NOTE: These steps are very well documented (TBD add some links)
FUTURE TBD for consideration: add section to cover this
FUTURE TBD: how to add a new target platform
Outline:
- Ability to run on desired target platform(s) (new platforms may be added in the future)
- All desired target platform(s) are supported by all plugin(s) needed
- Verify that cordova-plugin-console is installed
- Verify ability to add a
console.log
statement to Javascript
Goal: ability to use Cordova CLI to add a plugin and get it working before dealing with complexity of plugins such as Cordova File API and/or sqlite
- Recommendation: start with a very simple plugin such as cordova-plugin-dialogs
- add to project
- add to
onDeviceReady
function in Javascript cordova prepare
command- test on all desired target platform(s)
Configured by BackupWebStorage
in config.xml
IMPORTANT: By default configuration the iOS version has iCloud backup enabled, which I think is wrong. For example, it is NOT allowed to store a SQLite database in iCloud backup. For more information: https://developer.apple.com/library/mac/documentation/General/Conceptual/iCloudDesignGuide/Chapters/iCloudFundametals.html
The other options are to disable iOS backup or enable local backups via iTunes sync. For more information: https://cordova.apache.org/docs/en/latest/guide/platforms/ios/config.html
I have already filed Apache Cordova bug CB-9830 to fix the default iOS backup configuration.
- add to project
- add quick installation test code to the
onDeviceReady
function in Javascript - verify that it works on all desired target platform(s)
- DEFAULT: no external requests, no navigation outside
file://
URL(s), no external URL intents (such as opening maps) - configure as documented at: https://github.com/apache/cordova-plugin-whitelist
- intent whitelist (as documented at: https://github.com/apache/cordova-plugin-whitelist)
- IMPORTANT: Content Security Policy (as documented at: https://github.com/apache/cordova-plugin-whitelist)