I'm developing an application that communicates with a BLE device and for the purpose of the app, a Beacon (Eddystone) has been implemented in the BLE device.
In my application I implemented all the codes for Beacon recognition. Everything is working properly. When the application is terminated
, iOS recognizes the Beacon and wakes up my application to execute code.
To verify that the code executes correctly I trigger local notifications at certain stages of the code executed by the wake up of the Beacon.
I receive all my notifications correctly and when I lock the screen and the screen turns off, it always works without problems. Notifications are for testing only, but in the Production environment there will be no notifications.
My Problem:
When I'm in Production mode (without local notifications)
terminated
& screen is locked + turned ON
= Code executes successfully terminated
& screen is locked + turned OFF
= Beacon doesn't wake the app - nothing happens What can be the reason? Are there any limits to using the Beacon? iOS does not listen to the Beacon when the screen is off?
NOTE:
Always allow
. Eddystone
and not iBeacon
- Can it be the reason? Thank you very much! :)
尝试将CLbeaconRegion的notifyOnExit
属性设置为true。
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.