iOS application cannot detect out of range of Beacon device

Hello. We are creating an iOS application using Beacon devices.

In this iOS application, the phenomenon that the out-of-range detection of the Beacon device is not possible has occurred under the following environment/condition.

[Environment]

Models:iPhone XR 64GB

iOS version:13.7

[Condition]

Dark Mode OFF (the screen is always lit)

iOS application in foreground state

[Phenomenon]

In the iOS application, Beacon devices can detect in-range, but not out-of-range.

It uses the CLLocationManager class of the CoreLocation framework to implement the locationManager methods.

Normally, both didEnterRegion and didExitRegion are called back for in-range detection and out-of-range detection. However, when the above conditions are met, didEnterRegion is called back, but didExitRegion is not.

  • When the iOS application is in the background, both didEnterRegion and didExitRegion are called back. (no problem)
  • When Dark Mode is on, the same thing happens whether the iOS application is in the foreground or in the background.(didEnterRegion is called back, but didExitRegion is not called back)

What is the possible cause of this phenomenon? Also, how should I deal with it?

There is a correction. The Dark mode specified in the condition is incorrect. Auto lock is correct.

iOS application cannot detect out of range of Beacon device
 
 
Q