Is it possible to run Safari in the background on the iPhone and monitor a user's location?

岁酱吖の 提交于 2019-12-24 10:39:50

问题


Is it possible to run Safari in the background on the iPhone?

Specifically, our client would like to monitor a user's location via HTML5 GPS capabilities and measure the speed of movement.

The reason for avoiding native implementation in iOS is because the client wishes to create a cross-platform service using HTML5.

Is this possible?


回答1:


I don't believe Safari continues to execute when it's backgrounded. (This is supported by a recent thread on the Apple discussion board.)

That said, it would be fairly trivial to do this in a proper iOS application, although you'd obviously need existing knowledge of Objective-C, some of the main Cocoa/UIKit classes, the Xcode environment, etc.)



来源:https://stackoverflow.com/questions/4356117/is-it-possible-to-run-safari-in-the-background-on-the-iphone-and-monitor-a-user

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!