It is the basic project created using Ionic, Capacitor and Angular.
$ npm i
$ ionic build
$ npx cap open ios
$ npx cap open android
$ npx cap copy
$ ionic serve
$ npx cap open ios
$ npx cap run ios
$ npx cap open android
$ npx cap run android
You may wish to sync your web app with your native project(s) in the following circumstances:
- When you want to copy web assets into your native project(s).
- Before you run your project using a Native IDE.
- After you install a new Capacitor plugin.
- After you clone your project.
- When you want to setup or reconfigure the native project(s) for Capacitor.
- When you want to install native dependencies (e.g. with Gradle or CocoaPods).
To sync your project, run:
$ npx cap sync
To update Capacitor Core and CLI:
$ npm install @capacitor/cli@next
$ npm install @capacitor/core@next
To update any or all of the platforms you are using:
$ npm install @capacitor/ios@next
$ npm install @capacitor/android@next