Ionic Chrome Remote Debugging on Redmi Note 5
Table of Contents
Step 1: Enable developer options
Go to settings -> Application Version -> tab 7 times to enable developer options.
Step 2: Go to developer options and Enable USB Debugging.
Make sure you have enabled Allow Install via USB option too.
Step 3: Command to run on remote device – Debugging
ionic cordova run android --device -l --debug --ssl
Step 4: Allow in your mobile
Once the command connects to your connected mobile device then it will ask for the permission to install the app, do allow it.
Note: It just displays only 10 secs, so keep watching your phone to allow.
Successful console will print in command prompt something like this, [native-run] Selected hardware device 47721416 [native-run] Forwarded device port 8100 to host port 8100 [native-run] Installing platforms\android\app\build\outputs\apk\debug\app-debug.apk... [native-run] Starting application activity io.ionic.starter/io.ionic.starter.MainActivity... [native-run] Run Successful
Bonus:
Bonus:
Whenever any of your changes are not reflecting in your mobile device then do run this command,
ionic cordova build android
then try running this again.
ionic cordova run android --device -l --debug --ssl