react-native-geolocation icon indicating copy to clipboard operation
react-native-geolocation copied to clipboard

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

Open amarnyayapati opened this issue 2 years ago • 5 comments

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

amarnyayapati avatar Jan 24 '23 11:01 amarnyayapati

Same, any ideas ?

Alaa-Ben avatar Jan 24 '23 14:01 Alaa-Ben

+1

alex-vasylchenko avatar Jan 24 '23 16:01 alex-vasylchenko

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

BraveEvidence avatar Mar 03 '23 13:03 BraveEvidence

same issue

jrSuman avatar Jun 06 '23 06:06 jrSuman

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

michalchudziak avatar Jul 21 '23 11:07 michalchudziak

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

Saad-Bashar avatar Aug 28 '23 01:08 Saad-Bashar