最近刚上架了一款记录个人轨迹的 App

2018-08-13 15:43:11 +08:00
 brasbug

足迹-每日轨迹, 功能挺简单的,就是应用启动之后,会在后台记录个人的 gps 轨迹, 可以查看过去每一天的移动轨迹,然后还有聊天功能,聊天功能也很简单,只能扫二维码进入聊天页面,没有好友的概念。删了会话就没了。如果会话对方给你授权了,可以查看对方最后一次更新的位置。 个人历史轨迹记录都保存在应用本地沙盒。

暂时还没有添加 轨迹的数据分析,只是简单记录,后面如果需要可以加上轨迹分析,常去地点什么的。

http://7xsdes.com1.z0.glb.clouddn.com/ScreenRecording_08-09-2018%2005-24-38.MP4

20096 次点击
所在节点    Apple
63 条回复
qiweiying
2018-08-13 17:18:32 +08:00
感觉会非常耗电啊!
webgeekman
2018-08-13 17:43:35 +08:00
耗电问题是阻碍此类 APP 发展的永久的痛!
isayme
2018-08-13 18:04:29 +08:00
有没有哪个手环有这个功能的?
adandd
2018-08-13 18:09:44 +08:00
感觉做这些东西就做纯粹一点,加个聊天是能怎么用?世界迷雾了解一下?
faustina2018
2018-08-13 18:15:50 +08:00
炒鸡费电……
wwmmkk
2018-08-13 19:38:05 +08:00
life cycle 做的很好,耗电量也很低
royrs
2018-08-13 21:43:34 +08:00
世界迷雾了解一下
orangeade
2018-08-13 21:47:46 +08:00
ingress 可以这么玩
DingSoung
2018-08-13 21:56:33 +08:00
之前骑行或者去旅游的时候, 一直用“行者”, 包括去朝鲜晚上偷偷逃出来在平壤玩, 不依赖网络
唯一让人讨厌的是推送消息, 还有很多小红点, 很讨厌
DingSoung
2018-08-13 21:59:45 +08:00
PS, 行者可以导出 GPS 数据上传到谷歌地图, 国内谷歌地图没法记录位置, 就用的则个
另外这类 GPS 貌似并不耗电啊,iOS 可以退后台的
DingSoung
2018-08-13 22:05:38 +08:00
感觉两项功能很重要
第一, 能够导出完整的 GPS 数据
第二,能够彻底删除账号和数据
tonzeng
2018-08-13 22:11:47 +08:00
世界迷雾
loveour
2018-08-14 00:48:38 +08:00
后台 GPS 耗电是不是也没有那么夸张,不知道有数据吗?我之前为了给相机照片导入 GPS 数据,在 iPhone 上开了相机 App 的地理定位功能,每 5S 记录一次,开始很担心没多久手机就会没电了,后来发现坚持一天也还轻松。当然我也没怎么敢深度用那个手机。以及,这类 App 在 Android 上似乎很容易被杀掉。
brasbug
2018-08-14 08:19:56 +08:00
@qiweiying 我测试过耗电了,iPhone8plus 后台一天,耗电比例 4% , 等会我发个图
brasbug
2018-08-14 08:20:59 +08:00
@tonzeng 迷雾要钱呢。 我之前想仿个迷雾,后来想想做同样的事情没啥意思,不如做个可以记录每天轨迹的,更直观,回忆某段路线的时候也有个参考
brasbug
2018-08-14 08:24:03 +08:00
@DingSoung GPS 数据我保存在本地沙盒,使用的是 sqlit 保存的,
我后面可以把数据同步到 iCloud 上,这样数据自己也可以拿到
brasbug
2018-08-14 08:25:17 +08:00
@loveour iOS 有个省电模式的接口,我使用的是省电模式,不会一直请求 GPS,系统自己判断是不是需要更新,需要更新的话,系统会自动通知我的应用
eric1202
2018-08-14 09:07:49 +08:00
有点意思 可以开源或者可以介绍下关键使用的库和技术吗
loveour
2018-08-14 09:12:11 +08:00
@brasbug 这个能保证靠谱吗?我宁可费点电,也不愿意结果 GPS 数据出问题,那我开那个 App 就没意义了。这一点上,苹果比安卓还好一些,我一开始再安卓上也试过开那个 App,但是做不到 5 秒记录一次数据,最后结果偏差很大。猜想大概是系统改的电源机制搞的鬼。以及,看描述的话,这个还是得开发者去支持去使用那个接口才行的是吧?要是这样,感觉就得自己开发一个自动记录 GPS 和写入图片 Exif 的 App 才行了。老实说本来也觉得官方的有那么点不好用。
brasbug
2018-08-14 09:38:03 +08:00
@loveour 没你想的那么麻烦。 设置一下更新距离和多长时间更新一次。就可以了。
使用的这个 API 接口,- (void)allowDeferredLocationUpdatesUntilTraveled:(CLLocationDistance)distance
timeout:(NSTimeInterval)timeout。
接口文档

/*
* allowDeferredLocationUpdatesUntilTraveled:timeout:
*
* Discussion:
* Indicate that the application will allow the location manager to defer
* location updates until an exit criterion is met. This may allow the
* device to enter a low-power state in which updates are held for later
* delivery. Once an exit condition is met, the location manager will
* continue normal updates until this method is invoked again.
*
* Exit conditions, distance and timeout, can be specified using the constants
* CLLocationDistanceMax and CLTimeIntervalMax, respectively, if you are
* trying to achieve an unlimited distance or timeout.
*
* The CLLocationManagerDelegate will continue to receive normal updates as
* long as the application remains in the foreground. While the process is
* in the background, the device may be able to enter a low-power state for
* portions of the specified distance and time interval. While in this
* state, locations will be coalesced for later delivery.
*
* Location updates will be deferred as much as is reasonable to save
* power. If another process is using location, the device may not enter a
* low-power state and instead updates will continue normally. Deferred
* updates may be interspersed with normal updates if the device exits and
* re-enters a low-power state.
*
* All location updates, including deferred updates, will be delivered via
* the delegate callback locationManager:didUpdateLocations:
*
* When deferred updates have ended, the manager will invoke the delegate
* callback locationManagerDidFinishDeferredUpdates:withError:. An error
* will be returned if the manager will not defer updates and the exit
* criteria have not been met.
*/

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/479359

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX