Time based GPS location in background (iphone)(后台基于时间的 GPS 定位 (iphone))
问题描述
我想创建一个(基于游戏的)iPhone 应用程序,它将您的 GPS 位置在特定时间(例如每天 3-5 次)发送到服务器.我找到了一个苹果页面,解释了一些在后台运行的功能,例如位置、音乐和 VOIP.
I want to create an (game based) iPhone application which sends your GPS location on a specific time (like 3-5 times a day) to a server. I found an apple page explaining some functionality to run in the background like location, music and VOIP.
我需要 GPS 在仪表上准确.
I need the GPS to be accurate on the meter.
谁能帮我举个小例子?
推荐答案
这真的取决于你对位置的使用.如果您积极监控,请与用户的电池亲吻再见.非常详细的准确性,对电池的影响更大.就准确性而言,位置的背景是全部或全部.
It really depends on your usage of the location. If you monitor actively, kiss the battery of your user goodbye. Very detailed accuracy, even bigger hit to battery. The backgrounding of location is all or nothing as far as accuracy goes.
-startMonitoringForSignificantLocationChange 命中率低,准确性低.对您来说可能不够准确.
Less hit, less accuracy is -startMonitoringForSignificantLocationChange. May not be accurate enough for you.
根据使用情况、区域监控更好.在定义区域的进入或退出时触发事件.
Better depending on usage, region monitoring. Triggers event on entry or exit of defined region.
您无法从基于位置的准确性和定时事件中受益.你可以做到,但你需要付出更多的努力.
You don't have the benefit of accuracy and timed location based events. You can do it, but is going to require a lot more effort on your end.
这篇关于后台基于时间的 GPS 定位 (iphone)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:后台基于时间的 GPS 定位 (iphone)


- MalformedJsonException:在第1行第1列路径中使用JsonReader.setLenient(True)接受格式错误的JSON 2022-01-01
- Android - 拆分 Drawable 2022-01-01
- android 4中的android RadioButton问题 2022-01-01
- Android - 我如何找出用户有多少未读电子邮件? 2022-01-01
- Android viewpager检测滑动超出范围 2022-01-01
- 用 Swift 实现 UITextFieldDelegate 2022-01-01
- 如何检查发送到 Android 应用程序的 Firebase 消息的传递状态? 2022-01-01
- 使用自定义动画时在 iOS9 上忽略 edgesForExtendedLayout 2022-01-01
- 在测试浓缩咖啡时,Android设备不会在屏幕上启动活动 2022-01-01
- 想使用ViewPager,无法识别android.support.*? 2022-01-01