{"action":"created","issue":{"url":"https://api.github.com/repos/dpa99c/cordova-diagnostic-plugin/issues/123","repository_url":"https://api.github.com/repos/dpa99c/cordova-diagnostic-plugin","labels_url":"https://api.github.com/repos/dpa99c/cordova-diagnostic-plugin/issues/123/labels{/name}","comments_url":"https://api.github.com/repos/dpa99c/cordova-diagnostic-plugin/issues/123/comments","events_url":"https://api.github.com/repos/dpa99c/cordova-diagnostic-plugin/issues/123/events","html_url":"https://github.com/dpa99c/cordova-diagnostic-plugin/issues/123","id":178932887,"number":123,"title":"[bug] requestLocationAuthorization callback success before user response","user":{"login":"finalprototype","id":2839176,"avatar_url":"https://avatars.githubusercontent.com/u/2839176?v=3","gravatar_id":"","url":"https://api.github.com/users/finalprototype","html_url":"https://github.com/finalprototype","followers_url":"https://api.github.com/users/finalprototype/followers","following_url":"https://api.github.com/users/finalprototype/following{/other_user}","gists_url":"https://api.github.com/users/finalprototype/gists{/gist_id}","starred_url":"https://api.github.com/users/finalprototype/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/finalprototype/subscriptions","organizations_url":"https://api.github.com/users/finalprototype/orgs","repos_url":"https://api.github.com/users/finalprototype/repos","events_url":"https://api.github.com/users/finalprototype/events{/privacy}","received_events_url":"https://api.github.com/users/finalprototype/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dpa99c/cordova-diagnostic-plugin/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-09-23T17:36:14Z","updated_at":"2016-09-27T18:11:05Z","closed_at":"2016-09-25T09:07:46Z","body":"### Versions affected:\r\n- 3.2.0\r\n\r\n### Environment:\r\n```\r\n    \"node\": \"v6.3.0\",\r\n    \"xcode\": \"8.0\",\r\n    \"globals\": {\r\n      \"npm\": [\r\n        \"cordova@6.3.1\",\r\n        \"ios-deploy@1.8.6\",\r\n        \"ios-sim@5.0.8\"\r\n      ]\r\n    },\r\n    \"platforms\": [\r\n      \"ios@4.2.1\",\r\n      \"android@5.2.2\"\r\n    ],\r\n    \"plugins\": [\r\n      \"cordova-custom-config@2.0.2\",\r\n      \"cordova-plugin-device@1.1.3\",\r\n      \"cordova-plugin-network-information@1.3.0\",\r\n      \"cordova-plugin-file-transfer@1.6.0\",\r\n      \"cordova-plugin-splashscreen@4.0.0\",\r\n      \"cordova-plugin-geolocation@2.3.0\",\r\n      \"cordova-plugin-camera@2.3.0\",\r\n      \"cordova-plugin-dialogs@1.3.0\",\r\n      \"cordova-plugin-vibration@2.1.2\",\r\n      \"cordova-plugin-statusbar@2.2.0\",\r\n      \"cordova-plugin-whitelist@1.3.0\",\r\n      \"cordova-plugin-inappbrowser@1.5.0\",\r\n      \"cordova-plugin-customurlscheme@4.2.0\",\r\n      \"cordova-plugin-transport-security@0.1.2\",\r\n      \"cordova-plugin-mock-location@0.0.8\",\r\n      \"cordova-plugin-crosswalk-webview@2.0.0\",\r\n      \"cordova.plugins.diagnostic@3.2.0\",\r\n      \"cordova-plugin-actionsheet@2.3.1\",\r\n      \"phonegap-plugin-push@1.8.2\",\r\n    ]\r\n```\r\n### Issue\r\nCalling:  \r\n`cordova.plugins.diagnostic.requestLocationAuthorization(onSuccess, onError)`  \r\nimmediately calls `onSuccess` with `null` as it's response payload:  \r\n`requestLocationAuthorization:onSuccess – Arguments {0: null, length: 1}`\r\n\r\ncordova exec is fired and the permission dialog is displayed, but user response on allow or deny does not additionally fire `onSuccess` or `onError`.\r\n\r\nOccurs on Android 6.0+ and iOS 9.0+ (wasn't able to test 8.4). Reverting to 3.1.7 fixes the issue."},"comment":{"url":"https://api.github.com/repos/dpa99c/cordova-diagnostic-plugin/issues/comments/249949285","html_url":"https://github.com/dpa99c/cordova-diagnostic-plugin/issues/123#issuecomment-249949285","issue_url":"https://api.github.com/repos/dpa99c/cordova-diagnostic-plugin/issues/123","id":249949285,"user":{"login":"finalprototype","id":2839176,"avatar_url":"https://avatars.githubusercontent.com/u/2839176?v=3","gravatar_id":"","url":"https://api.github.com/users/finalprototype","html_url":"https://github.com/finalprototype","followers_url":"https://api.github.com/users/finalprototype/followers","following_url":"https://api.github.com/users/finalprototype/following{/other_user}","gists_url":"https://api.github.com/users/finalprototype/gists{/gist_id}","starred_url":"https://api.github.com/users/finalprototype/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/finalprototype/subscriptions","organizations_url":"https://api.github.com/users/finalprototype/orgs","repos_url":"https://api.github.com/users/finalprototype/repos","events_url":"https://api.github.com/users/finalprototype/events{/privacy}","received_events_url":"https://api.github.com/users/finalprototype/received_events","type":"User","site_admin":false},"created_at":"2016-09-27T18:11:05Z","updated_at":"2016-09-27T18:11:05Z","body":"Thanks for the quick turn around! Verified working on latest version."}}
{"actor":{"display_login":"finalprototype"}}