Search code examples
iphonehtmlgpsmobile-safari

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


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?


Solution

  • 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.)