michalchudziak / react-native-geolocation

Geolocation APIs for React Native
MIT License
1.28k stars 220 forks source link

Geolocation in iOS is taking nearly 10s whereas in android is much faster. Why? #237

Open amarnyayapati opened 1 year ago

amarnyayapati commented 1 year ago

Environment

Platforms

IOS

Versions

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... }

Alaa-Ben commented 1 year ago

Same, any ideas ?

alex-vasylchenko commented 1 year ago

+1

BraveEvidence commented 1 year ago

This will help https://www.youtube.com/watch?v=E7X9DjezSR0

jrSuman commented 1 year ago

same issue

michalchudziak commented 1 year ago

Thanks for reporting. Could you please provide a minimal repro example in a form of a repository?

Saad-Bashar commented 11 months ago

May be related to this? https://github.com/expo/expo/issues/10756