保存的GameKit去连接,而设备屏幕关闭或在后台 [英] GameKit keeping connection going while device screen off or in background

查看:151
本文介绍了保存的GameKit去连接,而设备屏幕关闭或在后台的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的工作,需要蓝牙连接,这是我使用的GameKit用于数据传送的机应用,但即时通讯看到,当我在后台模式走,或者我只是关闭应用程序中的屏幕,蓝牙连接断开.. 。香港专业教育学院看到,保持连接在这种情况下其他应用程序,任何人有任何想法,如果我失去了一些东西是不会导致连接在这种情况下降?一直在寻找周围,但还没有发现任何有用的东西......

I am working on an appliction that requires bluetooth connectivity, which i use GameKit for data transfer, however im seeing that when i go in background mode, or I just turn off the screen in app, the bluetooth connection is dropped... Ive seen other apps that keep the connection alive in such situations, anyone have any idea if I am missing something that wont cause the connection to drop on such cases? Have been looking around but havent found anything useful...

感谢

丹尼尔

推荐答案

这是不是故意苹果的支持。

This is not intentionally supported by Apple.

如果你正在写这对于不具备通过App Store分发应用程序,您可以设置应用程序在后台播放无声的音频文件。这将允许的GameKit继续当你的应用程序已经投入的背景或屏幕已锁定工作。

If you are writing this for an application that doesn't have to be distributed through the App Store, you can set the application up to play a silent audio file in the background. This will allow GameKit to continue to work even when your application has been put into the background or if the screen has locked.

如果该应用程序必须通过App Store进行分发,苹果需要将音频是一个真正的功能,发声音乐播放。

If this application has to be distributed through the App Store, Apple require the audio to be a real feature, with audible music playing.

这篇关于保存的GameKit去连接,而设备屏幕关闭或在后台的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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