Skip to content

How to set Livesync on Android Studio Emulator #3031

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
AntiraLoachote opened this issue Aug 3, 2017 · 1 comment
Closed

How to set Livesync on Android Studio Emulator #3031

AntiraLoachote opened this issue Aug 3, 2017 · 1 comment

Comments

@AntiraLoachote
Copy link

I created project Angular2 nativescript cli on version 3.1.1
my creating steps as following >> http://docs.nativescript.org/angular/tutorial/ng-chapter-1#appendix-a-choosing-an-editor
using Android Studio Emulator

when I edited .html and .css code then emulator did not display in real-time, the app closed itself before opened the app again with new codes.

Is there a way to change setting to set the app display result in real-time without app closing?

@dtopuzov
Copy link
Contributor

dtopuzov commented Aug 4, 2017

Hi @AntiraLoachote

Do you start the livesync process with tns run android or with some other CLI command or you start if via some IDE extension?

Is it a hello-world project or it includes some plugins like nativescript-dev-sass or nativescript-dev-less?

Current behavior is:

  • css and html changes will cause restart of angular app itself, you will not see the splash screen of nativescript application (but application state will be restarted, so if you navigated somewhere you will be back on home page after file change)
  • ts changes will cause restart of nativescript application and you will see the splash screen of the app.

We have an issue for improvements in this area, so you can add more suggestions there: NativeScript/NativeScript#4554
#2153

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants