问题描述
是否可以在iPhone的后台运行Safari?
具体来说,我们的客户希望通过HTML5 GPS功能监控用户的位置,并测量速度。
在iOS中避免原生实现的原因是因为客户希望使用HTML5创建一个跨平台的服务。
这可能吗?
我不相信Safari在后台运行时会继续执行。 (这由上的最近一次线索提供。)也就是说,在适当的iOS应用程序中执行此操作是相当简单的,尽管您显然需要对Objective-C,一些主要的Cocoa / UIKit类,Xcode环境等)
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?
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.)
这篇关于是否可以在iPhone的后台运行Safari并监视用户的位置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!