Is it possible to run Safari in the background on

2019-08-10 11:39发布

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条回答
手持菜刀,她持情操
2楼-- · 2019-08-10 12:30

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

查看更多
登录 后发表回答