在睡眠模式下运行iPhone应用程序 [英] Running IPhone apps while in sleep mode

查看:160
本文介绍了在睡眠模式下运行iPhone应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从iPhone OS 3.0开始,MotionX GPS能够在睡眠模式下继续录制GPS轨道。按下手机顶部的睡眠按钮后,应用程序将继续接收GPS坐标并进行录制。有谁知道他们怎么能这样做?我只知道在睡眠模式下继续运行音频的方法。

As of IPhone OS 3.0, MotionX GPS is able to keep recording a GPS track while in sleep mode. After you push the sleep button on top of the phone, the app continues receiving GPS coordinates and recording them. Does anyone know how they're able to do this? I'm only aware of the method to keep running audio while in sleep mode.

推荐答案

我找到一个很好的网页,解释了如何要做到这一点 - http:// marcopeluso。 com / 2009/08/23 /如何防止iphone从深度睡眠/

I found a great webpage that explains how to do it - http://marcopeluso.com/2009/08/23/how-to-prevent-iphone-from-deep-sleeping/

你必须启动一个播放的计时器每10秒响​​一次。但声音可以保持沉默。

You have to start a timer that plays a sound every 10 seconds. But the sound can be silent.

这篇关于在睡眠模式下运行iPhone应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆