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)
基础教程推荐
- navigator.geolocation.getCurrentPosition 在 Android 浏览器上 2022-01-01
- iOS4 创建后台定时器 2022-01-01
- Cocos2d iPhone 非矩形精灵触摸检测 2022-01-01
- libGDX 从精灵或纹理中获取像素颜色 2022-01-01
- AdMob 广告未在模拟器中显示 2022-01-01
- 通过重定向链接在 Google Play 中打开应用 2022-01-01
- iPhone - 获取给定地点/时区的当前日期和时间并将其与同一地点的另一个日期/时间进行比较的正确方法 2022-01-01
- 如何从 logcat 中删除旧数据? 2022-01-01
- NSString intValue 不能用于检索电话号码 2022-01-01
- Android:getLastKnownLocation(LocationManager.NETWORK_PROVIDER 2022-01-01
