{"action":"opened","issue":{"url":"https://api.github.com/repos/expo/expo/issues/1668","repository_url":"https://api.github.com/repos/expo/expo","labels_url":"https://api.github.com/repos/expo/expo/issues/1668/labels{/name}","comments_url":"https://api.github.com/repos/expo/expo/issues/1668/comments","events_url":"https://api.github.com/repos/expo/expo/issues/1668/events","html_url":"https://github.com/expo/expo/issues/1668","id":315652957,"number":1668,"title":"Asking for location permissions hangs forever on iOS standalone","user":{"login":"Devtron718","id":11264980,"avatar_url":"https://avatars0.githubusercontent.com/u/11264980?v=4","gravatar_id":"","url":"https://api.github.com/users/Devtron718","html_url":"https://github.com/Devtron718","followers_url":"https://api.github.com/users/Devtron718/followers","following_url":"https://api.github.com/users/Devtron718/following{/other_user}","gists_url":"https://api.github.com/users/Devtron718/gists{/gist_id}","starred_url":"https://api.github.com/users/Devtron718/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Devtron718/subscriptions","organizations_url":"https://api.github.com/users/Devtron718/orgs","repos_url":"https://api.github.com/users/Devtron718/repos","events_url":"https://api.github.com/users/Devtron718/events{/privacy}","received_events_url":"https://api.github.com/users/Devtron718/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-18T21:43:32Z","updated_at":"2018-04-18T21:43:32Z","closed_at":null,"author_association":"NONE","body":"### Environment\r\n\r\nStandalone iOS app, iOS 11.2.1,  expo 25.00\r\n\r\n### Steps to Reproduce\r\n \r\n`Permissions.askAsync(Permissions.LOCATION)` never resolves on iOS standalone app. Works in iphone simulator, when ran via expo client on iphone device, as well as android devices.\r\n\r\nIn this example code, the first alert is seen, but then no alert to ask for permissions nor the one after saying the status.\r\n\r\nThe code:\r\n```\r\nstatic async getCurrentLocation() {\r\n        Alert.alert(\r\n            'ABOUT TO ASK FOR LOCATION PERMISSION',\r\n            '',\r\n            [\r\n                {text: 'Yup', onPress: () => null},\r\n            ]\r\n        )\r\n        let { status } = await Permissions.askAsync(Permissions.LOCATION)\r\n        Alert.alert(\r\n            'LOCATION PERMISSION STATUS',\r\n            status,\r\n            [\r\n                {text: 'Yup', onPress: () => null},\r\n            ]\r\n        )\r\n        if (status !== 'granted') {\r\n            return \"location error\"\r\n        } else {\r\n            let promise = new Promise((resolve, reject) => {\r\n                navigator.geolocation.getCurrentPosition(\r\n                    (position) => {\r\n                        resolve({\r\n                            latitude: position.coords.latitude,\r\n                            longitude: position.coords.longitude\r\n                        })\r\n                    },\r\n                    (error) => {\r\n                        reject(\"location error\")\r\n                    },\r\n                    { timeout: 14000, maximumAge: 100000 },\r\n                )\r\n            })\r\n            return promise\r\n        }\r\n    }\r\n```\r\n\r\n### Expected Behavior\r\n\r\nShould prompt user asking for location permissions\r\n\r\n### Actual Behavior\r\n\r\nNo prompt and the promise never resolves with a status\r\n"}}
{"actor":{"display_login":"Devtron718"}}