Skip to content

Updating Ionic Cordova

nicknaky edited this page Oct 2, 2015 · 2 revisions

npm update -g ionic

ionic -v should be 1.6.5

npm update -g cordova

cordova -version should be 5.3.3

cordova platform rm ios

cordova platform rm android

cordova plugin add cordova-plugin-whitelist

cordova platform add ios

cordova platform add android

cordova platforms should show ios-3.9.1 and android-4.1.1

copy <meta http-equiv="Content-Security-Policy" content="default-src *; script-src 'self' 'unsafe-inline' 'unsafe-eval' *; style-src 'self' 'unsafe-inline' *">

and place into the beginning head of www/index.html, www/remote/local.index.html, and www/remote/index.html

ensure cordova_plugins.js is not being loaded or at least commented out in www/index.html

ensure navigator.splashscreen.show() is not being called in www/main.js since we'll be handling that in config.xml

for some reason ionic livereload overrides the cordova content src config.xml and replaces it with www/index.html. we'll need to add this to the ionic.project file:
"documentRoot": "www/remote", "createDocumentRoot": "www/remote",

Clone this wiki locally