{"id":92,"date":"2015-07-24T20:51:34","date_gmt":"2015-07-24T20:51:34","guid":{"rendered":"http:\/\/fluentreports.com\/blog\/?p=92"},"modified":"2015-07-24T20:51:34","modified_gmt":"2015-07-24T20:51:34","slug":"nativescript-v1-2-0-built-in-livesync-vs-the-nativescript-livesync-plugin","status":"publish","type":"post","link":"http:\/\/fluentreports.com\/blog\/?p=92","title":{"rendered":"NativeScript v1.2.0 Built in LiveSync vs the NativeScript-LiveSync Plugin"},"content":{"rendered":"<p><strong>Pros of Telerik's LiveSync:<\/strong><\/p>\n<ul>\n<li>Works from the NativeScript Command Line<\/li>\n<li>No extra code added to your application!<\/li>\n<li>Possibly works on Real IOS Devices (Untested on real device, but does not currently appear to work on a IOS Simulator)<\/li>\n<\/ul>\n<p><strong>Cons of Telerik's LiveSync:<\/strong><\/p>\n<ul>\n<li>Not really Live. It syncs the files; but then has to restart the application from scratch, no matter what file is changed.<\/li>\n<li>Delays while it detects any changes and then deploys the changes.<\/li>\n<li>Delays while it is re-launching Application.<\/li>\n<li>Loss of all application state since it reloads the app on every change.<\/li>\n<li>If you navigated three screens deep, and make a CSS file change; you will need to re-navigate to that screen again to see it.<\/li>\n<li>Incredibly slow LiveSync startup time. (What in the world is it doing for about a minute?)<\/li>\n<li>Can crash the LiveSync watcher code easily (don't change any files in the tns_modules!).<\/li>\n<li>Does not apparently detect any new files...<\/li>\n<li>Reset of the Application even if you change a file that isn't even being used.<\/li>\n<li>Easy to crash your application as the JavaScript and XML are not checked before being sent to the application.<\/li>\n<\/ul>\n<p><strong>Con's of Master Technology's LiveSync:<\/strong><\/p>\n<ul>\n<li>Until Telerik accepts the patch; you have to use the included patched runtime. (Please vote up the issue!)<\/li>\n<li>Added coded to your project.<\/li>\n<li>Only works on the Android platform, no IOS support.<\/li>\n<\/ul>\n<p><strong>Pro's of Master Technology's LiveSync:<\/strong><\/p>\n<ul>\n<li>Live, You see the app change almost exactly when your editor saves the files.<\/li>\n<li>New files are detected and synced instantly.<\/li>\n<li>Application state is almost always fully maintained.<\/li>\n<li>The screen you are working on only reloads ONLY if it is the code you just changed.<\/li>\n<li>Built in ability to detect errors in XML and JS before pushing to device to eliminate crashing the app on the device.<\/li>\n<li>Ability to only reload application on files that are singletons or other files that you would rather have the app reloaded for.<\/li>\n<li>Ability to restart application by touching or creating a \"restart.livesync\" file.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>The new LiveSync code has been updated to be a seemless installation on your Box.\u00a0\u00a0\u00a0 It now includes the modified runtimes for v1.20 of the Android runtimes.\u00a0\u00a0\u00a0\u00a0 All you have to do to install it is: <strong>tns plugin add nativescript-livesync<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Pros of Telerik's LiveSync: Works from the NativeScript Command Line No extra code added to your application! Possibly works on Real IOS Devices (Untested on real device, but does not currently appear to work on a IOS Simulator) Cons of Telerik's LiveSync: Not really Live. It syncs the files; but then has to restart the&hellip; <a class=\"more-link\" href=\"http:\/\/fluentreports.com\/blog\/?p=92\">Continue reading <span class=\"screen-reader-text\">NativeScript v1.2.0 Built in LiveSync vs the NativeScript-LiveSync Plugin<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"categories":[3,15,7],"tags":[18,19],"class_list":["post-92","post","type-post","status-publish","format-standard","hentry","category-javascript","category-nativescript","category-performance","tag-livesync","tag-nativesync","entry"],"_links":{"self":[{"href":"http:\/\/fluentreports.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/92","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/fluentreports.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/fluentreports.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/fluentreports.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/fluentreports.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=92"}],"version-history":[{"count":1,"href":"http:\/\/fluentreports.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/92\/revisions"}],"predecessor-version":[{"id":93,"href":"http:\/\/fluentreports.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/92\/revisions\/93"}],"wp:attachment":[{"href":"http:\/\/fluentreports.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=92"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/fluentreports.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=92"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/fluentreports.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=92"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}