{"action":"closed","issue":{"url":"https://api.github.com/repos/spark/mobile-sdk-ios/issues/57","labels_url":"https://api.github.com/repos/spark/mobile-sdk-ios/issues/57/labels{/name}","comments_url":"https://api.github.com/repos/spark/mobile-sdk-ios/issues/57/comments","events_url":"https://api.github.com/repos/spark/mobile-sdk-ios/issues/57/events","html_url":"https://github.com/spark/mobile-sdk-ios/issues/57","id":58680790,"number":57,"title":"check all device ownership edge cases ","user":{"login":"idokleinman","id":6490062,"avatar_url":"https://avatars.githubusercontent.com/u/6490062?v=3","gravatar_id":"","url":"https://api.github.com/users/idokleinman","html_url":"https://github.com/idokleinman","followers_url":"https://api.github.com/users/idokleinman/followers","following_url":"https://api.github.com/users/idokleinman/following{/other_user}","gists_url":"https://api.github.com/users/idokleinman/gists{/gist_id}","starred_url":"https://api.github.com/users/idokleinman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idokleinman/subscriptions","organizations_url":"https://api.github.com/users/idokleinman/orgs","repos_url":"https://api.github.com/users/idokleinman/repos","events_url":"https://api.github.com/users/idokleinman/events{/privacy}","received_events_url":"https://api.github.com/users/idokleinman/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/spark/mobile-sdk-ios/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-24T01:36:44Z","updated_at":"2015-04-09T17:57:54Z","closed_at":"2015-04-09T17:57:54Z","body":"(1) device not claimed `c=0` — device should also not be in list from API => mobile app assumes user is claiming and sets device claimCode + check its claimed at last stage\r\n(2) device claimed `c=1` and already in list from API => mobile app does not ask user about taking ownership because device already belongs to this user, does NOT set claimCode to device (no need) but does check ownership in last setup step\r\n(3) device claimed `c=1` and NOT in the list from the API => mobile app asks whether user would like to take ownership. YES: set claimCode and check ownership in last step, NO: doesn't set claimCode, doesn't check ownership in last step\r\n\r\nrelevant to #49 \r\n"}}