{"action":"created","issue":{"url":"https://api.github.com/repos/delba/Permission/issues/30","repository_url":"https://api.github.com/repos/delba/Permission","labels_url":"https://api.github.com/repos/delba/Permission/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/delba/Permission/issues/30/comments","events_url":"https://api.github.com/repos/delba/Permission/issues/30/events","html_url":"https://github.com/delba/Permission/issues/30","id":156682746,"number":30,"title":"Crash when changing permissions in iOS Settings app","user":{"login":"mathiasgithub","id":4968398,"avatar_url":"https://avatars.githubusercontent.com/u/4968398?v=3","gravatar_id":"","url":"https://api.github.com/users/mathiasgithub","html_url":"https://github.com/mathiasgithub","followers_url":"https://api.github.com/users/mathiasgithub/followers","following_url":"https://api.github.com/users/mathiasgithub/following{/other_user}","gists_url":"https://api.github.com/users/mathiasgithub/gists{/gist_id}","starred_url":"https://api.github.com/users/mathiasgithub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mathiasgithub/subscriptions","organizations_url":"https://api.github.com/users/mathiasgithub/orgs","repos_url":"https://api.github.com/users/mathiasgithub/repos","events_url":"https://api.github.com/users/mathiasgithub/events{/privacy}","received_events_url":"https://api.github.com/users/mathiasgithub/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-25T07:39:08Z","updated_at":"2016-05-25T08:19:13Z","closed_at":"2016-05-25T08:19:13Z","body":"If I set a closure as below, then open the iOS Settings app and change the permission there, the app will crash\r\n\r\n`permission.request { status in\r\n    switch status {\r\n    case .Authorized:    print(\"authorized\")\r\n    case .Denied:        print(\"denied\")\r\n    case .Disabled:      print(\"disabled\")\r\n    case .NotDetermined: print(\"not determined\")\r\n    }\r\n}`"},"comment":{"url":"https://api.github.com/repos/delba/Permission/issues/comments/221504861","html_url":"https://github.com/delba/Permission/issues/30#issuecomment-221504861","issue_url":"https://api.github.com/repos/delba/Permission/issues/30","id":221504861,"user":{"login":"delba","id":2891970,"avatar_url":"https://avatars.githubusercontent.com/u/2891970?v=3","gravatar_id":"","url":"https://api.github.com/users/delba","html_url":"https://github.com/delba","followers_url":"https://api.github.com/users/delba/followers","following_url":"https://api.github.com/users/delba/following{/other_user}","gists_url":"https://api.github.com/users/delba/gists{/gist_id}","starred_url":"https://api.github.com/users/delba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/delba/subscriptions","organizations_url":"https://api.github.com/users/delba/orgs","repos_url":"https://api.github.com/users/delba/repos","events_url":"https://api.github.com/users/delba/events{/privacy}","received_events_url":"https://api.github.com/users/delba/received_events","type":"User","site_admin":false},"created_at":"2016-05-25T08:19:13Z","updated_at":"2016-05-25T08:19:13Z","body":"You have to use a real device, not the simulator for this :/\r\n\r\nhttps://developer.apple.com/library/ios/documentation/IDEs/Conceptual/iOS_Simulator_Guide/TestingontheiOSSimulator/TestingontheiOSSimulator.html"}}
{"actor":{"display_login":"delba"}}