0

I want to run app with ionic view app in my real device I tried in the first time

ionic link 

after

ionic upload 

when i run the last command i get this error

error

can anyone help me please ? and thanks in advance

2 Answers 2

1

You can run your Ionic project on a real device with the following command, for example for an Android device:

ionic cordova run android --device 

Your Android device must be connected to your computer and you will have to allow debugging on your Android device.

ionic link is actually used to connect your local app to Ionic'online service.

To check that your device is recognized and Ionic will be able to transfer the apk, use the following command

adb devices 

You should see your Android device listed.

Sign up to request clarification or add additional context in comments.

4 Comments

i use it but i didn't see execution on my device
D:\Master m1 big data\5Developpement mobile\ionicproject\ioniclynda\appvid39_musica>ionic cordova ru n --android
Sorry, I updated the command, it is: ionic cordova run android --device
the end of the command is this [OK] Your app has been deployed. Did you know you can live-reload changes from your app with --livereload? D:\Master m1 big data\5Developpement mobile\ionicproject\ioniclynda\appvid39_musica>
0
  1. turn on the developer option on your mobile.
  2. Check your device is recognized - adb devices
  3. Go your ionic application folder and run npm i -g cordova
  4. ionic cordova run android --prod

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.