{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/react-native-code-push/issues/303","repository_url":"https://api.github.com/repos/Microsoft/react-native-code-push","labels_url":"https://api.github.com/repos/Microsoft/react-native-code-push/issues/303/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/react-native-code-push/issues/303/comments","events_url":"https://api.github.com/repos/Microsoft/react-native-code-push/issues/303/events","html_url":"https://github.com/Microsoft/react-native-code-push/issues/303","id":150308725,"number":303,"title":"Downloading in the mainThread","user":{"login":"CaoLiang1991","id":16915325,"avatar_url":"https://avatars.githubusercontent.com/u/16915325?v=3","gravatar_id":"","url":"https://api.github.com/users/CaoLiang1991","html_url":"https://github.com/CaoLiang1991","followers_url":"https://api.github.com/users/CaoLiang1991/followers","following_url":"https://api.github.com/users/CaoLiang1991/following{/other_user}","gists_url":"https://api.github.com/users/CaoLiang1991/gists{/gist_id}","starred_url":"https://api.github.com/users/CaoLiang1991/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CaoLiang1991/subscriptions","organizations_url":"https://api.github.com/users/CaoLiang1991/orgs","repos_url":"https://api.github.com/users/CaoLiang1991/repos","events_url":"https://api.github.com/users/CaoLiang1991/events{/privacy}","received_events_url":"https://api.github.com/users/CaoLiang1991/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-04-22T08:43:25Z","updated_at":"2016-04-25T01:34:28Z","closed_at":null,"body":"When I want to the second page，why do I have to wait for the download is complete。It is not asynchronous ？"},"comment":{"url":"https://api.github.com/repos/Microsoft/react-native-code-push/issues/comments/214086481","html_url":"https://github.com/Microsoft/react-native-code-push/issues/303#issuecomment-214086481","issue_url":"https://api.github.com/repos/Microsoft/react-native-code-push/issues/303","id":214086481,"user":{"login":"lostintangent","id":116461,"avatar_url":"https://avatars.githubusercontent.com/u/116461?v=3","gravatar_id":"","url":"https://api.github.com/users/lostintangent","html_url":"https://github.com/lostintangent","followers_url":"https://api.github.com/users/lostintangent/followers","following_url":"https://api.github.com/users/lostintangent/following{/other_user}","gists_url":"https://api.github.com/users/lostintangent/gists{/gist_id}","starred_url":"https://api.github.com/users/lostintangent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lostintangent/subscriptions","organizations_url":"https://api.github.com/users/lostintangent/orgs","repos_url":"https://api.github.com/users/lostintangent/repos","events_url":"https://api.github.com/users/lostintangent/events{/privacy}","received_events_url":"https://api.github.com/users/lostintangent/received_events","type":"User","site_admin":false},"created_at":"2016-04-25T01:34:28Z","updated_at":"2016-04-25T01:34:28Z","body":"@CaoLing1991 I believe this issue may be related to the download progress events that we fire from our native plugin to JS. As @geof90 mentioned, the download itself happens on a background thread, but the download progress events that we fire to JS could potentially interrupt your app while it's trying to navigate.\r\n\r\nSince your app isn't even listening to download progress events when you call sync, it doesn't make any sense for these events to even be firing in the first place, so we're going to submit a fix this week to disable these events when an update is being downloaded which didn't request progress events. I'm hoping this should fix your situation.\r\n\r\nThanks for reporting this. Stay tuned!"}}