-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Smarter LiveSync #977
Comments
This comment was marked as abuse.
This comment was marked as abuse.
I think Nathanael solution is pretty good in Android.the ios simulator version is already pretty fast, maybe Android is urgently need the update or just use Nathanael solution |
Thank you for sharing your research about fonts! Did you verify this behavior on both iOS and Android? Please bear in mind that this issue focuses only on the changes which we are introducing in NativeScript 1.5. We will continue improving LiveSync in the following releases. We need more time to discover and fix all the edge cases on both platforms. There's a separate issue about linting. We think it is a very good idea and needs to be done at first opportunity. |
This comment was marked as abuse.
This comment was marked as abuse.
And how about a feature to load script from http server? I think about for development and easy update for production purposes. It will be awesome |
Yes livesync from an HTTP server would be great for Native Script @x4080 @teobugslayer This feature is a requirement of many projects I have coming up and is the only reason React Native is still an option for me. They already have the feature but I prefer Native Script for everything else. The release of this feature I think would greatly improve Native Script's popularity because it enables devs to support customer deployments in a much faster and efficient way. I am willing to contribute in any way I can to the expedition of the implementation of this feature. |
It would be awesome if support for |
Hi @amjd,
|
Please refer to https://github.com/NativeScript/nativescript-cli/issues for any LiveSync related issues. |
Are there any special requirements to make the new LiveSync work in {N} 1.5.0? I'm using the iOS Simulator and running FWIW, the terminal shows this error when running Simulator still loads fine, so not sure the implication of this error. Looked at trace logs, but few obvious errors there. Only error that occurs in logs before one above is this:
|
Issue with Android- calling "tns livesync android" with my connected Android device and am getting the following error: Project successfully prepared Thanks in advance for assistance on this |
Hi @toddanglin, It seems that you have connected device and running simulator. In order to livesync to iOS simulator execute |
Hi @GitCharm, Can you execute |
Thanks, @Fatme. I actually don't have any other iOS devices physically connected...but Either way, the The iOS simulator is still restarting every time I issue the
Seems |
I am having the same experience as @toddanglin I can actually see the visual change right before the app restarts. |
@toddanglin, |
I just created a brand new hello world app and the smart livesync works just fine... |
@vchimev Yes, I can confirm that tns-core-modules has been upgraded to 1.5.0. In fact, I deleted the entire tns-core-modules directory and then let npm re-install the latest version to be sure all modules were 100% fresh/upgraded. @ignaciofuentes That's interesting. To test, I created a brand new project and smart livesync still restarts the app with each update (no TypeScript). I'm testing against iOS simulator on OS X. |
At the moment, I'm seeing a pretty poor livesync experience with ios. The app fully restarts, and requires a 5-10 second reload time, losing state in the process. I'm not 100% sure, but due to the existence of this project https://github.com/NathanaelA/nativescript-liveedit and that React Native seems to have a lot swifter reloading, is this something that NativeScript is going to be pushing to achieve (ie hot reloading of as much of the app as possible, without a full rebuild/restart, particularly for JS / logic files)? |
@chrisbarry Sorry to hear you're having that much trouble. Not normally the livesync experience. That said, the 2.1 release is aiming to make hot reloading in NativeScript even more robust/faster. Definitely something the core team is continuing to invest a lot of time in improving. You can see it on the high-level roadmap here: https://www.nativescript.org/roadmap The goal is to support the hot reloading experience you describe: fast, reload all assets, retain state |
@toddanglin many thanks for the response, NativeScript does seem to be one of the cleanest cross platform tools available today. 2.1 sounds exciting, looking forward to trying that out once it's ready! |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Smarter LiveSync without restarts
The text was updated successfully, but these errors were encountered: