- 下载后:
npm install -g ionic cordova && npm install
- 浏览器调试:
ionic serve
- 打包成apk:
ionic cordova build android --debug
- 数据库插件:
ionic cordova plugin add cordova-sqlite-storage
npm install --save @ionic/storage
$ ionic cordova plugin add cordova-plugin-geolocation
$ npm install --save @ionic-native/geolocation
- 添加浏览器
cordova plugin add cordova-plugin-inappbrowser@latest --save
npm install -- save @ionic-native/in-app-browser
- 修改浏览器user-agent
ionic cordova plugin add cordova-plugin-useragent
npm install @ionic-native/user-agent
https://angularfirebase.com/lessons/sharing-data-between-angular-components-four-methods/