开发者

Why do mobile HTML geolocation apps get fewer location updates than native apps?

开发者 https://www.devze.com 2023-03-16 17:23 出处:网络
I noticed that HTML5 geolocation position updates do not arrive as often as native 开发者_开发知识库Apps position updates.

I noticed that HTML5 geolocation position updates do not arrive as often as native 开发者_开发知识库Apps position updates.

While the location in iphone's native maps App moves smoothly, the position on google's mobile maps page jumps from point to point when driving a car.

I assumed that mobile safari gets its position from the OS, so shouldn't the both be synchronous?


Because when you are getting the location in Safari it only gets the Geo Location as Fast as it is specified in the Javascript Function, Basically if the webpage asks for the link and the location is under the specified Time Frame then it will leave the Location where it is at. If the Location is Too old then the webpage gets a new location and that process starts over.

Thats the way it used to work, and i am still looking into how the details work but thats what i have come across so far. - and is probably outdated now But Hey its still cool!

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号