flutterlocation icon indicating copy to clipboard operation
flutterlocation copied to clipboard

error in getLocation with IOS Simulators.

Open MichaelAsasware opened this issue 11 months ago • 9 comments

Describe the bug when run app in IOS simulator and try to getLocation, the function dose NOT return any data or exception so i have to change location from simulator feature from "custom location" to "Apple". Note that it work fine with (IOS real device) and android (Real device and simulator) but apple connect mark it as a bug in my app and rejected app.

Expected behavior

Tested on:

  • iOS, Version [7.0.1], simulator Iphone 15

Other plugins:

Additional logs i have to use dependency override to fix the issue dependency_overrides: google_maps_flutter_ios: 2.13.1


MichaelAsasware avatar Jan 26 '25 10:01 MichaelAsasware

Same error here

OmarBakry-eg avatar Feb 01 '25 20:02 OmarBakry-eg

Any update on this issue? Did any of you get past this issue?

ninaada avatar Mar 06 '25 17:03 ninaada

Same behavior. any update regarding this?

Zambeel-Ltd avatar Mar 24 '25 06:03 Zambeel-Ltd

Same issue here.

OmarBakry-eg avatar Mar 24 '25 09:03 OmarBakry-eg

Seeing this issue on iOS simulator, only seems to happen on cold start, hot restarts are OK.

Also seeing this behaviour in the Android emulator, also only on cold start.

markvideon avatar Apr 14 '25 03:04 markvideon

Try to run on Xcode and you will get error

This method can cause UI unresponsiveness if invoked on the main thread. Instead, consider waiting for the -locationManagerDidChangeAuthorization: callback and checking authorizationStatus first.

solve this and update SDK, tested on iOS 18.4 Simulator.

MakwanaMaulik avatar Apr 25 '25 07:04 MakwanaMaulik

Any update on this?

Williamtobs avatar Sep 15 '25 23:09 Williamtobs