{"action":"created","issue":{"url":"https://api.github.com/repos/malcommac/SwiftLocation/issues/102","repository_url":"https://api.github.com/repos/malcommac/SwiftLocation","labels_url":"https://api.github.com/repos/malcommac/SwiftLocation/issues/102/labels{/name}","comments_url":"https://api.github.com/repos/malcommac/SwiftLocation/issues/102/comments","events_url":"https://api.github.com/repos/malcommac/SwiftLocation/issues/102/events","html_url":"https://github.com/malcommac/SwiftLocation/issues/102","id":199177407,"number":102,"title":"onAuthorizationDidChange not called (and never called) on specific flow","user":{"login":"bphenriques","id":4727729,"avatar_url":"https://avatars.githubusercontent.com/u/4727729?v=3","gravatar_id":"","url":"https://api.github.com/users/bphenriques","html_url":"https://github.com/bphenriques","followers_url":"https://api.github.com/users/bphenriques/followers","following_url":"https://api.github.com/users/bphenriques/following{/other_user}","gists_url":"https://api.github.com/users/bphenriques/gists{/gist_id}","starred_url":"https://api.github.com/users/bphenriques/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bphenriques/subscriptions","organizations_url":"https://api.github.com/users/bphenriques/orgs","repos_url":"https://api.github.com/users/bphenriques/repos","events_url":"https://api.github.com/users/bphenriques/events{/privacy}","received_events_url":"https://api.github.com/users/bphenriques/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-01-06T11:25:59Z","updated_at":"2017-01-09T08:55:44Z","closed_at":null,"body":"Environment:\r\n- Version 1.1.1\r\n- Swift 3\r\n- iPhone 4S 8.4\r\n\r\nI am displaying a alert to open the app settings when the status is different than the one required (.alwaysInUse). The handler is being called when I swap between an incorrect value (`!= .alwaysInUse`) and (`.alwaysInUse`) but is not called between two incorrect values. This is important because I am using the handler to open an alert.\r\n\r\nReproduce:\r\n1. Open app and authorise location\r\n2. Go to settings app (app suspended and change to when in use or never)\r\n3. Go to app and the handler `onAuthorizationDidChange` is called\r\n4. Go to settings app and change to the other non-always option\r\n5. Go back to app and the handler is not called\r\n6. From now on, the `onAuthorizationDidChange` event handler is never called"},"comment":{"url":"https://api.github.com/repos/malcommac/SwiftLocation/issues/comments/271235058","html_url":"https://github.com/malcommac/SwiftLocation/issues/102#issuecomment-271235058","issue_url":"https://api.github.com/repos/malcommac/SwiftLocation/issues/102","id":271235058,"user":{"login":"malcommac","id":235645,"avatar_url":"https://avatars.githubusercontent.com/u/235645?v=3","gravatar_id":"","url":"https://api.github.com/users/malcommac","html_url":"https://github.com/malcommac","followers_url":"https://api.github.com/users/malcommac/followers","following_url":"https://api.github.com/users/malcommac/following{/other_user}","gists_url":"https://api.github.com/users/malcommac/gists{/gist_id}","starred_url":"https://api.github.com/users/malcommac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/malcommac/subscriptions","organizations_url":"https://api.github.com/users/malcommac/orgs","repos_url":"https://api.github.com/users/malcommac/repos","events_url":"https://api.github.com/users/malcommac/events{/privacy}","received_events_url":"https://api.github.com/users/malcommac/received_events","type":"User","site_admin":false},"created_at":"2017-01-09T08:55:44Z","updated_at":"2017-01-09T08:55:44Z","body":"I'm working around it in order to provide a recovery on error feature. I'll update this thread soon as I can."}}
{"actor":{"display_login":"malcommac"}}