{"action":"created","issue":{"url":"https://api.github.com/repos/evermeer/EVCloudKitDao/issues/22","labels_url":"https://api.github.com/repos/evermeer/EVCloudKitDao/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/evermeer/EVCloudKitDao/issues/22/comments","events_url":"https://api.github.com/repos/evermeer/EVCloudKitDao/issues/22/events","html_url":"https://github.com/evermeer/EVCloudKitDao/issues/22","id":114942639,"number":22,"title":"How to update iCloud account status when user signs out or changes accounts?","user":{"login":"tbaggett","id":1326678,"avatar_url":"https://avatars.githubusercontent.com/u/1326678?v=3","gravatar_id":"","url":"https://api.github.com/users/tbaggett","html_url":"https://github.com/tbaggett","followers_url":"https://api.github.com/users/tbaggett/followers","following_url":"https://api.github.com/users/tbaggett/following{/other_user}","gists_url":"https://api.github.com/users/tbaggett/gists{/gist_id}","starred_url":"https://api.github.com/users/tbaggett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbaggett/subscriptions","organizations_url":"https://api.github.com/users/tbaggett/orgs","repos_url":"https://api.github.com/users/tbaggett/repos","events_url":"https://api.github.com/users/tbaggett/events{/privacy}","received_events_url":"https://api.github.com/users/tbaggett/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-04T00:34:45Z","updated_at":"2015-11-04T07:47:12Z","closed_at":null,"body":"Is there currently a way to force the public/private db's accountStatus property to be updated when a NSUbiquityIdentityDidChangeNotification is received or when the app becomes active and a change in the iCloud account status is detected by inspecting the NSFileManager.defaultManager().ubiquityIdentityToken?"},"comment":{"url":"https://api.github.com/repos/evermeer/EVCloudKitDao/issues/comments/153622661","html_url":"https://github.com/evermeer/EVCloudKitDao/issues/22#issuecomment-153622661","issue_url":"https://api.github.com/repos/evermeer/EVCloudKitDao/issues/22","id":153622661,"user":{"login":"evermeer","id":130834,"avatar_url":"https://avatars.githubusercontent.com/u/130834?v=3","gravatar_id":"","url":"https://api.github.com/users/evermeer","html_url":"https://github.com/evermeer","followers_url":"https://api.github.com/users/evermeer/followers","following_url":"https://api.github.com/users/evermeer/following{/other_user}","gists_url":"https://api.github.com/users/evermeer/gists{/gist_id}","starred_url":"https://api.github.com/users/evermeer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evermeer/subscriptions","organizations_url":"https://api.github.com/users/evermeer/orgs","repos_url":"https://api.github.com/users/evermeer/repos","events_url":"https://api.github.com/users/evermeer/events{/privacy}","received_events_url":"https://api.github.com/users/evermeer/received_events","type":"User","site_admin":false},"created_at":"2015-11-04T07:47:12Z","updated_at":"2015-11-04T07:47:12Z","body":"You will be able to reinitialize the database using:\r\nEVCloudKitDao.publicDb.initializeDatabase()\r\nThis also works on the privateDb and you can pass a containerId as a parameter.\r\nYou also need to call the .discoverUserInfo if you want to get the new userId.\r\n\r\n"}}