Trying it out on iPhone 12 Simulator, iOS 14.4, when Geolocation.getCurrentPosition is called without having the permission requested yet, neither SuccessCallback, nor ErrorCallback is ever called.
I expect ErrorCallback to be called almost immediately with the following error object: {message: "Location permission denied", code: 1}, however, it just does not finish.
It errors out when I pass a timeout value. Otherwise, it doesn't finish at all.
Description
Trying it out on iPhone 12 Simulator, iOS 14.4, when
Geolocation.getCurrentPosition
is called without having the permission requested yet, neitherSuccessCallback
, norErrorCallback
is ever called. I expectErrorCallback
to be called almost immediately with the following error object:{message: "Location permission denied", code: 1}
, however, it just does not finish.It errors out when I pass a timeout value. Otherwise, it doesn't finish at all.
Here's the code:
It doesn't finish out when permission is requested and granted too.
Versions
"react": "17.0.1"
"react-native-geolocation-service": "^5.3.0-beta.1"
"react-native": "0.64.1",
I can confirm that the issue is present for version
5.2.0
as well.