Ibeacon in the foreground with a static library

I created a framework that takes care of registering CLBeaconRegions and, when in a range, in a range of CLBeacons, and then sends UILocalNotification. It works as it should when I compile an application with actual classes, but not when I compile an application with classes in a thick static library.

What the structure does: 1. EnterRegion event for CLBeaconRegion 2. Start ranking 3. Range beacon 4. Deliver UILocalNotification

When testing this application, which has actual classes, it works both in the foreground and in the background.

When testing this application, which contains the full library, it works in the background and only sometimes in the foreground.

Any idea what could be the problem here?

+5
source share

All Articles