简体   繁体   English

后台的iOS广告信标

[英]iOS advertising beacon in background

I devlope advertising data app in iOS.我在 iOS 中开发了广告数据应用程序。 My app advertising data is good in foreground.我的应用广告数据在前台很好。 But I want to advertising beacon data in ios background.但我想在 ios 后台广告信标数据。 I set up background-peripheral setting.我设置了背景外设设置。 and advertisingData和广告数据

advertisingData = [CBAdvertisementDataLocalNameKey: localName, 
CBAdvertisementDataServiceUUIDsKey: [serviceUUID]]`

that's well show foreground when, my app stopped(home button), ios beacon scanned, but all data not showing.当我的应用程序停止(主页按钮),扫描 ios 信标,但未显示所有数据时,这很好地显示了前景。 I already know in background mode, services gone `overflow' area, but is there anything you can do without a offical way?我已经知道在后台模式下,服务消失了“溢出”区域,但是如果没有官方方式,您有什么可以做的吗?

I wrote my master thesis about this topic.我写了关于这个主题的硕士论文。 The answer is no, it is not possible to make an iOS App advertise beacon data in background.答案是否定的,不可能让 iOS 应用程序在后台广告信标数据。

It doesn't work with the traditional CoreLocation APIs.它不适用于传统的 CoreLocation API。 What you may be able to do, is to replicate the iBeacon behavior in your app while supporting background broadcast and detection, but I did not manage to make the broadcasted signal to be recognised as a beacon.您可以做的是在您的应用程序中复制 iBeacon 行为,同时支持后台广播和检测,但我没有设法使广播信号被识别为信标。

Check this answer for additional information: https://stackoverflow.com/a/19941436/3726570检查此答案以获取更多信息: https : //stackoverflow.com/a/19941436/3726570

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM