All documentation is here: https://ionicframework.com/docs
-
Download Android Studio
-
Download Android SDK API level 29 or 30 in Android Studio
-
npm install -g @ionic/cli
- Run with live reload for android:
ionic capacitor run android -l --external
- Run with live reload for ios:
ionic capacitor run ios -l --external
- ❗️ Phone and computer must be on same WiFi!!!
- Opening chrome developer tools
- Open this url in Chrome
chrome://inspect/#devices
- Find connected device from Remote Target list and click
inspect
- Open this url in Chrome
- For building application:
ionic build
ionic build --prod
- Before packaging
npx ng build --aot=true --configuration="production"
-
For copying all assets to native apps:
-
ionic capacitor copy
ionic capacitor copy android
for only androidionic capacitor copy ios
for only iosionic capacitor copy electron
for only electron
-
-
Open IDE's :
npx cap open android
(Android Studio)npx cap open ios
(Xcode)
-
PWA build and start
- Build application with prod profile (
npx ng build --aot=true --configuration="production"
) cd
towww
directory and start serve command (serve .
)- You can install
serve
withnpm i -g serve
- Build application with prod profile (