无需手动运行应用程序的 iPhone 用户位置
我需要使用谷歌地图读取 iPhone 用户的位置,但我不希望用户必须运行我的应用程序才能执行此操作。它不一定需要不断跟踪,但我可能想每 10 或 20 分钟检查一次用户位置。
理想情况下,用户可以关闭或打开此功能,但最重要的部分是我不想运行该应用程序才能检查用户位置。这可能吗?你会怎样做呢?
I need to read the iPhone users location using google maps, but I don't want the user to have to run my app to do so. It doesn't necessarily need to be tracked constantly, but I might want to check the user location every 10 or 20 minutes.
Ideally this feature could be turned off or on by the user, but the most important part is that I don't want to have to run the app in order for it to check the user location. Is this possible? How would you go about doing this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于 iOS 4 多任务应用程序,您需要阅读 本文档介绍在后台接收位置事件。用户需要运行您的应用程序才能开始跟踪过程。
For an iOS 4 multitasking app, you want to read this document on Receiving Location Events in the Background. The user will need to run your app to start the tracking process.