{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/9202","repository_url":"https://api.github.com/repos/facebook/react-native","labels_url":"https://api.github.com/repos/facebook/react-native/issues/9202/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/9202/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/9202/events","html_url":"https://github.com/facebook/react-native/issues/9202","id":169288428,"number":9202,"title":"Android app crashes when geolocation permission is not given","user":{"login":"calclavia","id":1828968,"avatar_url":"https://avatars.githubusercontent.com/u/1828968?v=3","gravatar_id":"","url":"https://api.github.com/users/calclavia","html_url":"https://github.com/calclavia","followers_url":"https://api.github.com/users/calclavia/followers","following_url":"https://api.github.com/users/calclavia/following{/other_user}","gists_url":"https://api.github.com/users/calclavia/gists{/gist_id}","starred_url":"https://api.github.com/users/calclavia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calclavia/subscriptions","organizations_url":"https://api.github.com/users/calclavia/orgs","repos_url":"https://api.github.com/users/calclavia/repos","events_url":"https://api.github.com/users/calclavia/events{/privacy}","received_events_url":"https://api.github.com/users/calclavia/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-08-04T04:25:20Z","updated_at":"2016-09-14T01:54:56Z","closed_at":"2016-09-14T01:54:56Z","body":"Using React Native v0.30\r\n\r\nIt seems like React Native apps will crash when geolocation permission is revoked on Android API 23. I tested this by setting targetSdkVersion to 16, and this allowed the app to work even with geolocation permission revoked. It would be great if we can target API level 23, but instead of having the app crash, simply cause the navigator.geolocation to return an error like it does in API level 16. That way the app itself can decide how to tell the user to enable geolocation rather than crashing without an error message.\r\n\r\nTo replicate, create a React Native app that requires Android permission, and set the target SDK version to 23. Revoke the geolocation permission when prompted (or through Application Manager). The app will crash upon launch."},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/246882467","html_url":"https://github.com/facebook/react-native/issues/9202#issuecomment-246882467","issue_url":"https://api.github.com/repos/facebook/react-native/issues/9202","id":246882467,"user":{"login":"calclavia","id":1828968,"avatar_url":"https://avatars.githubusercontent.com/u/1828968?v=3","gravatar_id":"","url":"https://api.github.com/users/calclavia","html_url":"https://github.com/calclavia","followers_url":"https://api.github.com/users/calclavia/followers","following_url":"https://api.github.com/users/calclavia/following{/other_user}","gists_url":"https://api.github.com/users/calclavia/gists{/gist_id}","starred_url":"https://api.github.com/users/calclavia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calclavia/subscriptions","organizations_url":"https://api.github.com/users/calclavia/orgs","repos_url":"https://api.github.com/users/calclavia/repos","events_url":"https://api.github.com/users/calclavia/events{/privacy}","received_events_url":"https://api.github.com/users/calclavia/received_events","type":"User","site_admin":false},"created_at":"2016-09-14T01:54:56Z","updated_at":"2016-09-14T01:54:56Z","body":"Seems like method described in https://facebook.github.io/react-native/docs/permissionsandroid.html works well."}}
{"actor":{"display_login":"calclavia"}}