简体   繁体   English

当app在后台时,使用iBeacon进行广告宣传

[英]Advertising with iBeacon when app is in background

I have been digging all forums and tutorials about transmitting in background mode with iBeacon. 我一直在挖掘所有关于使用iBeacon在后台模式下传输的论坛和教程。 Until now, I couldn't find something solid which can help me. 到现在为止,我找不到可以帮助我的实物。 My app can successfully receive and transmit but when I press home button, transmitting stops and connection on other device/devices disappear. 我的应用程序可以成功接收和传输但是当我按下主页按钮时,传输停止并且其他设备/设备上的连接消失。 In myApp.plist, I added required keys but still nothing works. 在myApp.plist中,我添加了所需的密钥,但仍然无效。 The question is, how can I make my app keep transmitting in background mode? 问题是,如何让我的应用程序继续在后台模式下传输?

iBeacon will not advertise (transmit) in the background. iBeacon不会在后台做广告(传输)。 If you need this you will not be able to use iBeacon and will instead need to implement your own BTLE advertisement (which will run in the background). 如果你需要这个,你将无法使用iBeacon,而是需要实现自己的BTLE广告(将在后台运行)。

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

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