I am running Ionic CLI 5.2.6, and app is still on Ionic-v1. I just upgraded from CLI v1.7.14 and never really used any of the
ionic serve or
--livereload features before and nowt attempting to use these features for the first time
ionic cordova run android -l successfully starts the service and launches the app to my test Samsung device. The service sees changes to saved files in
www folder, but the app on the device is not getting updated with the changes. With the service running and the app deployed, from another cli I did another
ionic cordova build android to see if the newest changes would get deployed to the already running app but nope, didn’t work.
Am i not doing something correctly or not understanding how this is supposed to work?
C:\dev\myApp>ionic cordova run android -l [INFO] Hardware device(s) found for android. Using --device. > ionic-v1.cmd serve --host=localhost --port=8101 --livereload-port=35730 --dev-port=53704 --engine=cordova --platform=android [v1] [11:19:56] Serving directory www [INFO] Development server running! Local: http://localhost:8101 Use Ctrl+C to quit this process > cordova.cmd build android --device > native-run.cmd android --app platforms\android\app\build\outputs\apk\debug\app-debug.apk --device --forward 8101:8101 --forward 35730:35730 --forward 53704:53704 [native-run] Selected hardware device 2752c2e3 [native-run] Forwarded device port 35730 to host port 35730 [native-run] Forwarded device port 8101 to host port 8101 [native-run] Forwarded device port 53704 to host port 53704 [native-run] Installing platforms\android\app\build\outputs\apk\debug\app-debug.apk... [native-run] Starting application activity com.myApp/com.myApp.MainActivity... [native-run] Run Successful [v1] [11:22:12] www\templates\tab-menu.html changed [v1] [11:28:39] www\css\ionic.app.css changed [v1] [11:28:40] www\css\ionic.app.min.css changed
My dev env:
Ionic: Ionic CLI : 5.2.6 (C:\Users\RPO\AppData\Roaming\npm\node_modules\ionic) Ionic Framework : ionic1 1.0.0 @ionic/v1-toolkit : 1.0.22 Cordova: Cordova CLI : 9.0.0 (email@example.com) Cordova Platforms : android 8.0.0 Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 4.1.1, (and 30 other plugins) Utility: cordova-res : 0.6.0 native-run : 0.2.8 System: NodeJS : v10.16.3 (C:\Program Files\nodejs\node.exe) npm : 6.4.0 OS : Windows 7