android - Capacitor Geolocation.getCurrentPosition 需要 10 秒才能在 IOS 设备中获取位置
问题描述
在 iPhone 中使用该应用程序时,我需要在我的应用程序中使用设备的坐标。我正在使用Geolocation.getCurrentPosition()
电容器插件。但是当我每次请求 GPS 位置时,需要 10 秒才能获得坐标。有没有办法提高在 IOS 和 Android 中获取 GPS 位置的性能?当前版本的电容器是 2.4.4
谢谢。
解决方案
推荐阅读
- reactjs - 新创建的 React 应用程序在实时服务器上崩溃
- sql - 将旧数据库中的表和文件组复制到新数据库
- r - 循环变量是r中的正则表达式
- firebase - 在插桩测试中,如何在禁用网络时使 Cloud Firestore 写入命令成功?
- javascript - 对数据库的 API 响应中的字符串进行编码或转义?
- python - 保存使用带有 dill 的库的函数
- javascript - 带有 JSON 数据的 Vue isse
- ruby-on-rails - Ruby On Rails - 在 form_for 步骤中,如何将数据库查询的结果以表单形式保存到 f 数据库中
- r - 在 ggplot2 螺钉中使用 scale_y_continuous 并在区域图中进行颜色填充
- angular - Angular 2+ 上传文件拦截器问题