Create a project and add capacitor to our project
- ionic start cameraApp blank --type=angular
- cd cameraApp
- npm install --save @capacitor/core @capacitor/cli Add application name, appID and platforms to use
- npx cap init
- ionic build
- npx cap add android (to add android) We need to add pwa-elements to avoid ( TypeError: cameraModal.present is not a function )
- npm install @ionic/pwa-elements
- add this on main import { defineCustomElements } from '@ionic/pwa-elements/loader'; defineCustomElements(window); Add UI Elements