Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

nativescript livereload on device

i am using https://github.com/NathanWalker/angular2-seed-advanced which creates a running nativescript app.

now, i am a starter with nativescript and wanted to ask, how i can achieve a good development flow.

i am coming from ionic where i was able to see the console output on my development machine and was able to test my app live on a cable connected device. live reloading was running also.

so my questions:

  1. can i run my app on a device without publishing it to the store
  2. will i be able to see the console.log output somehow on my local dev machine with adb or a nativescript cli command?
  3. is live reloading possible for developing nativescript apps?

Thank you in advance!

like image 957
divramod Avatar asked Oct 29 '25 02:10

divramod


2 Answers

  1. yes
  2. yes
  3. yes

    tns livesync android --watch

like image 85
divramod Avatar answered Oct 30 '25 18:10

divramod


  1. You can install the app to your own Android / iOS real devices and/or the iOS simulator and Android emulators, all without sending it to any of the stores.

  2. You can see the log fine, typically when you do a tns run [ios|android] the log is pipped back to your console. You can also run the standard adb logcat (android) or idevicesyslog (for iOS if installed)

  3. Live reloading is possible, and works fairly well. You can use the tns run [android|ios] which is built into the tns command line.

like image 34
Nathanael Avatar answered Oct 30 '25 17:10

Nathanael



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!