Geolocator似乎阻止了网络访问

编程入门 行业动态 更新时间:2024-10-22 18:40:35
本文介绍了Geolocator似乎阻止了网络访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

在我们的视频会议应用程序中,网络访问似乎被关闭了大约几秒钟.仅在订阅Geolocator的StatusChanged/PositionChanged时每15秒;否则工作正常.当我们尝试将延迟保持在1秒以下时,连接断开 每15秒持续几秒钟真的很痛.这与wifi是位置来源之一有关吗?是否有其他方法可以像其他平台上那样选择要使用的位置源?

In our video conferencing app network access seems to get shut down for a couple of sec approx. every 15 sec ONLY when subscribed to Geolocator's StatusChanged/PositionChanged; works fine otherwise. As we try to keep latency under 1 sec, losing connectivity for a couple of sec every 15 sec really hurts. Does this have anything to do with wifi being one of location sources? Is there any way to select (a) location source(s) to use, like on other platforms?

推荐答案

视频会议应用程序?您是在使用geo来避免陷入困境还是允许您的应用在后台运行?

What's the need for geolocate with a video conference application? Are you using geo to sidestep getting tomestoned or allowing your app to run in the background?

您可以更改所需精度的设置(考虑将其降低为0)和报告间隔(考虑将其提高).

You can change the settings for desiredaccuracy (think about lowering it to 0) and reportinterval (think about increasing it).

更多推荐

Geolocator似乎阻止了网络访问

本文发布于:2023-11-24 09:00:35,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1624568.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:网络   Geolocator

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!