首页 > 解决方案 > Capacitor Geolocation.getCurrentPosition 需要 10 秒才能在 IOS 设备中获取位置

问题描述

在 iPhone 中使用该应用程序时,我需要在我的应用程序中使用设备的坐标。我正在使用Geolocation.getCurrentPosition()电容器插件。但是当我每次请求 GPS 位置时,需要 10 秒才能获得坐标。有没有办法提高在 IOS 和 Android 中获取 GPS 位置的性能?当前版本的电容器是 2.4.4

谢谢。

标签: androidioscapacitor

解决方案


推荐阅读