本文介绍了是否可以在iPhone的后台运行Safari并监视用户的位置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在iPhone的后台运行Safari?



具体来说,我们的客户希望通过HTML5 GPS功能监控用户的位置,并测量速度。

在iOS中避免原生实现的原因是因为客户希望使用HTML5创建一个跨平台的服务。



这可能吗?

解决方案

我不相信Safari在后台运行时会继续执行。 (这由上的最近一次线索提供。)

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并监视用户的位置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-24 20:38