Why is locationmanager returning old location fixes with new gettime-timestamp?

前端 未结 1 483
自闭症患者
自闭症患者 2021-01-13 00:55

We have an app that upon user action tries to get a location fix. It listens both on GPS and network and has a time/accuracy based decision matrix to determine when to stop

1条回答
  •  被撕碎了的回忆
    2021-01-13 01:00

    It seems to happen both from Wi-Fi and network, but not GPS

    This seems fair, because in the Wi-Fi and network cell-site based triangulation, the accuracy is very bad. They are probably using cached locations which date back to 30 minutes ago. Unless you have not changed your cell-site or moved to another building so that new APs can be discovered, I'm afraid you will get only cached locations. If you want fresh locations use the GPS provider.

    0 讨论(0)
提交回复
热议问题