iBeacon detection when app is closed

Does anyone know if I can create an app that can detect ibeacon even if the app is closed? I need to send the user a local notification when a region is entered (at an immediate distance) while the app is closed.

Having the same issue here & my situation is complicated as I'm using Flutter to do this. I managed to do this in Android using flutter_foreground_task. But no luck with iOS.

According to below thread, it seems like this was possible in iOS 14. But since iOS15 this seems to be impossible to do. https://developer.apple.com/forums/thread/690452

I guess below are the options available for native iOS app developers

  1. Use BGAppRefreshTaskRequest to scan Beacons once in every 5 min or so for 30s. However this is not guaranteed to work as iOS decide execution timing based on many other factors. I found more on that at https://uynguyen.github.io/2020/09/26/Best-practice-iOS-background-processing-Background-App-Refresh-Task/

  2. Ask user to keep app running in background May be you can use above(1) to push a notification & remind user that app is not detecting beacons.

About Flutter implementation, I still have no solution. Appreciate if someone can help here...

iBeacon detection when app is closed
 
 
Q