Good morning everyone,
I am developing a Flutter app for Android and iOS.
When I press a button, the app detects the location of the device (obviously with permissions already granted).
On Android everything works correctly.
On iOS, however, when I press the button for the first time after opening the app, the location is detected after about 30-50 seconds.
On the other hand, if I repeat the operation later, the response time is drastically reduced (only a few seconds).
I am using the location package (https://pub.dev/packages/location), and the code to get the location is as follows:
var currentLocation = await location.getLocation();
Has anyone experienced this problem before or knows how to solve it?
Thank you very much!
Federico
Given that you’re not using Apple’s APIs directly, there are two ways you can approach this:
- You can create a small test project using Xcode to call the Apple APIs directly, and see if you can reproduce the problem there. If so, we can help you with that here on DevForums.
- You can escalate this via the support channel for the third-party tools you’re using. That way you’re more likely to connect up with folks who has expertise in those tools.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"