iOS版 - iBeacon显示 - 广告(广播)作为背景灯塔的iOS 7.1后更新 [英] iOS - iBeacon - Advertise (Broadcast) as beacon in Background after iOS 7.1 update

查看:324
本文介绍了iOS版 - iBeacon显示 - 广告(广播)作为背景灯塔的iOS 7.1后更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图让使用iBeacon显示另一个作为Receiver.I通过类似的事情在的运行iPhone作为在后台iBeacon显示但present解决方案没有为iBeacon显示的API,所以我再次问这个事情。

I am trying to make an Application using iBeacon in which One device will work as beacon Broadcaster and another one as Receiver.I gone through the similar thing in Run iPhone as an iBeacon in the background but the solution that present there is not for API of iBeacon so i am asking this thing again.

我在检测仪器(接收器),即使该应用程序在后台被通知或退出模式取得成功。但每当广播设备的应用中去后台停止广播数据包,并变得不再作为灯塔。当它回来的前景再次正常工作。所以,问题是广播必须始终在前台以用作广告商或广播。

I succeed in being notified on Detector Device(receiver) even the App is in Background or in Quit mode. but Whenever Broadcaster Device's App goes in Background it stops Broadcasting packets and become no more as beacon. When it comes back in Foreground it again works fine. So the issue is Broadcaster has to be always in Foreground to Act as Advertiser or Broadcaster.

反正是有做广告iBeacon显示的中/广播数据包,即使应用程序在后台模式。

Is there anyway to advertise/Broadcast packets of iBeacon's even when App is in background mode.

我从X code启用功能位置更新和充当蓝牙LE配件。

I have enabled capabilities "Location Update" and "Acts as a Bluetooth LE accessory" from xCode.

推荐答案

不幸的是,这是根本不可能做广告在iOS上的背景是iBeacon显示。对于一个解释,为什么,在这里看到:<一href=\"http://stackoverflow.com/questions/24164523/can-we-start-ibeacon-transmitter-in-background\">Can我们开始iBeacon显示发射器在后台?

Unfortunately, it is simply not possible to advertise as an iBeacon in the background on iOS. For an explanation as to why, see here: Can we start iBeacon transmitter in background?

这篇关于iOS版 - iBeacon显示 - 广告(广播)作为背景灯塔的iOS 7.1后更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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