react-native-geolocation
                                
                                 react-native-geolocation copied to clipboard
                                
                                    react-native-geolocation copied to clipboard
                            
                            
                            
                        Geolocation in iOS is taking nearly 10s whereas in android is much faster. Why?
Environment
Platforms
IOS
Versions
- Android: 12
- iOS: 16
- react-native-geolocation:"^3.0.5"
- react-native: "0.68.2"
- react:"17.0.2"
Description
Geolocation service in iOS is taking nearly 10secs whereas in Android is much faster due to which the performance in iOS App is getting affected.
Reproducible Demo
const auth = await Geolocation.requestAuthorization("whenInUse"); const auth1 = await Geolocation.requestAuthorization("always");
if (auth === "granted" || auth1 === "granted") { // do something if granted... }
Same, any ideas ?
+1
This will help https://www.youtube.com/watch?v=E7X9DjezSR0
same issue
Thanks for reporting. Could you please provide a minimal repro example in a form of a repository?
May be related to this? https://github.com/expo/expo/issues/10756