{"action":"created","issue":{"url":"https://api.github.com/repos/NativeScript/NativeScript/issues/977","labels_url":"https://api.github.com/repos/NativeScript/NativeScript/issues/977/labels{/name}","comments_url":"https://api.github.com/repos/NativeScript/NativeScript/issues/977/comments","events_url":"https://api.github.com/repos/NativeScript/NativeScript/issues/977/events","html_url":"https://github.com/NativeScript/NativeScript/issues/977","id":112796290,"number":977,"title":"Smarter LiveSync","user":{"login":"teobugslayer","id":5443453,"avatar_url":"https://avatars.githubusercontent.com/u/5443453?v=3","gravatar_id":"","url":"https://api.github.com/users/teobugslayer","html_url":"https://github.com/teobugslayer","followers_url":"https://api.github.com/users/teobugslayer/followers","following_url":"https://api.github.com/users/teobugslayer/following{/other_user}","gists_url":"https://api.github.com/users/teobugslayer/gists{/gist_id}","starred_url":"https://api.github.com/users/teobugslayer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teobugslayer/subscriptions","organizations_url":"https://api.github.com/users/teobugslayer/orgs","repos_url":"https://api.github.com/users/teobugslayer/repos","events_url":"https://api.github.com/users/teobugslayer/events{/privacy}","received_events_url":"https://api.github.com/users/teobugslayer/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/NativeScript/NativeScript/labels/5%20-%20Done","name":"5 - Done","color":"009800"},{"url":"https://api.github.com/repos/NativeScript/NativeScript/labels/S:High","name":"S:High","color":"e11d21"},{"url":"https://api.github.com/repos/NativeScript/NativeScript/labels/T:Feature","name":"T:Feature","color":"d4c5f9"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/NativeScript/NativeScript/milestones/8","html_url":"https://github.com/NativeScript/NativeScript/milestones/1.5","labels_url":"https://api.github.com/repos/NativeScript/NativeScript/milestones/8/labels","id":1310529,"number":8,"title":"1.5","description":"","creator":{"login":"valentinstoychev","id":4980822,"avatar_url":"https://avatars.githubusercontent.com/u/4980822?v=3","gravatar_id":"","url":"https://api.github.com/users/valentinstoychev","html_url":"https://github.com/valentinstoychev","followers_url":"https://api.github.com/users/valentinstoychev/followers","following_url":"https://api.github.com/users/valentinstoychev/following{/other_user}","gists_url":"https://api.github.com/users/valentinstoychev/gists{/gist_id}","starred_url":"https://api.github.com/users/valentinstoychev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valentinstoychev/subscriptions","organizations_url":"https://api.github.com/users/valentinstoychev/orgs","repos_url":"https://api.github.com/users/valentinstoychev/repos","events_url":"https://api.github.com/users/valentinstoychev/events{/privacy}","received_events_url":"https://api.github.com/users/valentinstoychev/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":69,"state":"open","created_at":"2015-09-17T14:20:41Z","updated_at":"2015-11-23T15:10:52Z","due_on":"2015-11-24T22:00:00Z","closed_at":null},"comments":10,"created_at":"2015-10-22T12:52:55Z","updated_at":"2015-11-24T23:51:12Z","closed_at":"2015-11-23T15:10:52Z","body":"### Smarter LiveSync without restarts\r\n - [x] CLI: Respect deleted files\r\n - [x] CLI: When sending xml and css files to the device, do not restart the app\r\n - [x] CLI: When syncing JS, images, fonts, or other resources - restart the entire app\r\n - [x] CLI: Implement a dedicated tcp socket as communication channel between it and the runtimes\r\n - [x] CLI: Notify runtimes after the files are on the device that the change had happened\r\n - [ ] CLI: Research if we can fast sync for other file types (mostly images)\r\n - [x] CLI: Lower batch time in the cli to 250ms\r\n - [x] CLI: Implement together batch livesync/restart with fast livesync\r\n\r\n***\r\n - [x] Android runtime: spike tcp socket as communication channel between it and the CLI.\r\n - [x] Android: notify modules when files are changed and the current page must be reloaded - see bellow\r\n\r\n***\r\n - [x] iOS: notify modules when files are changed and the current page must be reloaded - see bellow\r\n\r\n***\r\n - [x] Modules: implement a global function (tentative name: __nativeScriptLiveSyncCallback). The run times will call it whenever the current page needs to be reloaded\r\n"},"comment":{"url":"https://api.github.com/repos/NativeScript/NativeScript/issues/comments/159441976","html_url":"https://github.com/NativeScript/NativeScript/issues/977#issuecomment-159441976","issue_url":"https://api.github.com/repos/NativeScript/NativeScript/issues/977","id":159441976,"user":{"login":"toddanglin","id":647319,"avatar_url":"https://avatars.githubusercontent.com/u/647319?v=3","gravatar_id":"","url":"https://api.github.com/users/toddanglin","html_url":"https://github.com/toddanglin","followers_url":"https://api.github.com/users/toddanglin/followers","following_url":"https://api.github.com/users/toddanglin/following{/other_user}","gists_url":"https://api.github.com/users/toddanglin/gists{/gist_id}","starred_url":"https://api.github.com/users/toddanglin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toddanglin/subscriptions","organizations_url":"https://api.github.com/users/toddanglin/orgs","repos_url":"https://api.github.com/users/toddanglin/repos","events_url":"https://api.github.com/users/toddanglin/events{/privacy}","received_events_url":"https://api.github.com/users/toddanglin/received_events","type":"User","site_admin":false},"created_at":"2015-11-24T23:51:12Z","updated_at":"2015-11-24T23:51:12Z","body":"Are there any special requirements to make the new LiveSync work in {N} 1.5.0? I'm using the iOS Simulator and running `tns livesync ios` still causes the app to reload.\r\n\r\nFWIW, the terminal shows this error when running `livesync` with the iOS simulator:\r\n**Unable to start service com.apple.mobile.house_arrest. Result code is: 3892314239**\r\n\r\nSimulator 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:\r\n\r\n```\r\nstderr: \r\nTransferring project files...\r\nTransferring project files...\r\nMultiple exceptions were thrown:\r\n    at FiberFuture.Future.wait (/usr/local/lib/node_modules/nativescript/node_modules/fibers/future.js:535:15)\r\n...\r\n```"}}