Closed renanogueiraa closed 3 years ago
@renanogueiraa Were you able to get this working? I get Location request timed out
on iOS 14.4.2+, but it works fine everywhere else.
I think this should be re-opened.
It looks like the problem is the errorCallback
is called no matter what if you manually set the timeout
value, since the timerFired
selector will run at the end of the Timer's timeInterval
:
https://github.com/Agontuk/react-native-geolocation-service/blob/de29b69c90b37530bdbb190eb8d58b4ea537ac20/ios/RNFusedLocation.swift#L164
I've got a fix locally that seems to be working. I can push up a PR if needed.
Edit: Never mind, I created a new ticket here: https://github.com/Agontuk/react-native-geolocation-service/issues/291
As it says in the title, I'm having trouble getting the library to work in my app on iOS 14.5 (while Android is ok!) As much as it asks for permission and I give it, it keeps returning an error saying that the location for the app was not allowed. And I have all the permissions on Info.plist too, as I previously used the react-native-geolocation library and it was working for iOS normally...
Is there anything I can do to make it work? it's the first time i'm using the lib.
The code:
The second code:
Thanks guys!