运行iOS应用程序与屏幕锁定 [英] Running IOS App with Screen Locked

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

问题描述

我正在使用GPS和OpenEars文本到语音的运动应用程序。该应用程序提供了速度和其他GPS信息可听用户(通过耳机),使用户(滑雪,骑自行车等),可以得到GPS信息,而不看屏幕。为了节省电池寿命,我想应用与屏幕关闭后台运行。这可能与IOS?我尝试设置必需backgrund模式GPS和音频,但我的应用程序退出时,屏幕关闭工作。

I am working on a sports app that uses GPS and OpenEars text-to-speech. The app delivers speed and other GPS info to the user audibly (via earphones) so the user (skier, cyclist, etc) can get the GPS info without looking at the screen. In order to save battery life, I would like the app to run in the background with the screen off. Is this possible with IOS? I tried setting "Required backgrund modes" for both GPS and audio, but my app quits working when the screen is off.

感谢..

推荐答案

一一避过它是有一个沉默的音频文件播放,在没有音频,它可能让你的应用程序在App Store拒绝,但。 .. <一href=\"http://stackoverflow.com/questions/8003951/gamekit-keeping-connection-going-while-device-screen-off-or-in-background\">here是谈到了无声的音频文件播放,以保持在后台一个问题...这可能是通过在您的情况的应用程序商店获得批准,因为它是对音频继电器作为它的主要功能之一,一个应用程序。

One one to get around it is to have a silent audio file playing, when there is no audio, it might get your app rejected in the app store though... here is a question that talks about the silent audio file playing to keep in the background... It might get through app store approval in your situation since it is an app that relays on audio as one of its main functionalities..

这篇关于运行iOS应用程序与屏幕锁定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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