-
-
Notifications
You must be signed in to change notification settings - Fork 666
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: TimeoutException after 0:00:10.000000: Future not completed #1611
Comments
I’m experiencing the same issue when running on the iOS simulator. The location request doesn't seem to work as expected. Has anyone found a workaround or a potential fix for this? |
Hello @br-programmer |
Please play around with the location settings, if you are testing indoor or outside would also generate different results. Try to lower the accuracy and distance filter first. Kind regards, |
@TimHoogstrate |
@TimHoogstrate Any Update? |
|
Same issue. |
Pixel 8 Android 14 |
mee too |
After some test, GMS phone can't get position in China, after I solved "network connection" problem, it works. |
这个是怎么解决的呢,我测试过华为、小米、还有其它机型,貌似只要没有Google服务的都不行 |
I have the same situation as the author of this question |
I have the same issue. |
@langyuxiansheng |
这是因为geo用的谷歌地图,国内访问不了,你试试翻墙看看,翻墙应该是没有问题的。
猫吃小鱼干
***@***.***
…------------------ 原始邮件 ------------------
发件人: "Baseflow/flutter-geolocator" ***@***.***>;
发送时间: 2025年2月8日(星期六) 下午3:16
***@***.***>;
***@***.******@***.***>;
主题: Re: [Baseflow/flutter-geolocator] [Bug]: TimeoutException after 0:00:10.000000: Future not completed (Issue #1611)
@langyuxiansheng
解决了吗?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
没有 解决不了。。。 安卓端,暂时用的是百度地图的定位SDK来处理的。 |
但是正常用户谁会去翻墙呀。。。 大部分使用APP的用户可能都是普通用户,特别是国内的。 |
Please check the following before submitting a new issue.
Please select affected platform(s)
Steps to reproduce
Use the getCurrentPosition method with the following code:
userPositionData = await Geolocator.getCurrentPosition(
locationSettings: LocationSettings(
accuracy: LocationAccuracy.high,
distanceFilter: 10,
timeLimit: const Duration(seconds: 10),
));
I don't want a limit I want to connect the user's location in my app but on an Android Redmi(Android 13) device it will not get the user's current location
Expected results
want to connect in every device
Actual results
I do not want to timeout my app content force location tracking so for this issue my app was stuck
Code sample
userPositionData = await Geolocator.getCurrentPosition(
locationSettings: LocationSettings(
accuracy: LocationAccuracy.high,
distanceFilter: 10,
timeLimit: const Duration(seconds: 10),
));
Screenshots or video
Screenshots or video demonstration
[Upload media here]
Version
geolocator: ^13.0.2
Flutter Doctor output
flutter --version
Flutter 3.24.5 • channel stable • https://github.com/flutter/flutter.git
Framework • revision dec2ee5c1f (12 days ago) • 2024-11-13 11:13:06 -0800
Engine • revision a18df97ca5
Tools • Dart 3.5.4 • DevTools 2.37.3
The text was updated successfully, but these errors were encountered: