{"action":"closed","issue":{"url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-iOS/issues/1047","labels_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-iOS/issues/1047/labels{/name}","comments_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-iOS/issues/1047/comments","events_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-iOS/issues/1047/events","html_url":"https://github.com/forcedotcom/SalesforceMobileSDK-iOS/issues/1047","id":86927246,"number":1047,"title":"Resync not working after first app closing","user":{"login":"McFlyssss","id":5735738,"avatar_url":"https://avatars.githubusercontent.com/u/5735738?v=3","gravatar_id":"","url":"https://api.github.com/users/McFlyssss","html_url":"https://github.com/McFlyssss","followers_url":"https://api.github.com/users/McFlyssss/followers","following_url":"https://api.github.com/users/McFlyssss/following{/other_user}","gists_url":"https://api.github.com/users/McFlyssss/gists{/gist_id}","starred_url":"https://api.github.com/users/McFlyssss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/McFlyssss/subscriptions","organizations_url":"https://api.github.com/users/McFlyssss/orgs","repos_url":"https://api.github.com/users/McFlyssss/repos","events_url":"https://api.github.com/users/McFlyssss/events{/privacy}","received_events_url":"https://api.github.com/users/McFlyssss/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-iOS/labels/bug","name":"bug","color":"e11d21"}],"state":"closed","locked":false,"assignee":{"login":"wmathurin","id":1012459,"avatar_url":"https://avatars.githubusercontent.com/u/1012459?v=3","gravatar_id":"","url":"https://api.github.com/users/wmathurin","html_url":"https://github.com/wmathurin","followers_url":"https://api.github.com/users/wmathurin/followers","following_url":"https://api.github.com/users/wmathurin/following{/other_user}","gists_url":"https://api.github.com/users/wmathurin/gists{/gist_id}","starred_url":"https://api.github.com/users/wmathurin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wmathurin/subscriptions","organizations_url":"https://api.github.com/users/wmathurin/orgs","repos_url":"https://api.github.com/users/wmathurin/repos","events_url":"https://api.github.com/users/wmathurin/events{/privacy}","received_events_url":"https://api.github.com/users/wmathurin/received_events","type":"User","site_admin":false},"milestone":null,"comments":11,"created_at":"2015-06-10T10:56:14Z","updated_at":"2015-09-08T17:51:47Z","closed_at":"2015-09-08T17:51:47Z","body":"I'm using the resync methods in 3.2 SDK version and I found what seems to be an issue. Let me describe the process that we are following:\r\n\r\nEach time the app launches we call sync/resync methods to keep data updated. We store the syncId that the SDK returns after each sync process only if the sync status is equals to 'SFSyncStateStatusDone'. \r\nThen the next time we try to sync we check if we have syncId and if so we use resync to update data.\r\n\r\nThis works most of the times except if we close the app after the very first sync. In that specific case after launching the app again the resync process fails:\r\nERROR|SFSmartSyncSyncManager|Sync XX not found\r\nERROR|SFSmartSyncSyncManager|Cannot run reSync:XX:no sync found\r\n\r\nWhen the first resync fails we just call sync again in order to get the data again. After this everything works as expected and we can resync as many times as we need."}}