简体   繁体   中英

iOS advertising beacon in background

I devlope advertising data app in iOS. My app advertising data is good in foreground. But I want to advertising beacon data in ios background. 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. 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.

It doesn't work with the traditional CoreLocation APIs. 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.

Check this answer for additional information: https://stackoverflow.com/a/19941436/3726570

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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