Closed mahmuttaskiran closed 4 years ago
Hi @mahmuttaskiran
Maybe this will work for you AltBeacon/android-beacon-library#Android O ranging in background issue. But this behavior (ranging beacons in background) will not work on iOS.
Yup, feel free to send PR 😄
Could you please post a short example of beacon monitoring when app is not running?
Thanks, @alann-maulana. I have written a plugin for ranging and monitoring in the background for Android. On iOS I don't know if it is possible or not, I am not an expert on iOS. I have read some articles for possible iOS implementation but as far as I know, there are some restrictions for background execution especially for ranging.
is it possible to have beacon monitoring in background, and when a beacon is detected for the app to start in background to do some work (maybe send a notification or whatever). Right now it only works for me when the app is either in foreground or background... but not if the app is not started by user.
Could you please post a short example of beacon monitoring when app is not running?
I use this library daily at all of my office projects. You can use the monitoring beacon method both for background and foreground mode.
Thanks, @alann-maulana. I have written a plugin for ranging and monitoring in the background for Android. On iOS I don't know if it is possible or not, I am not an expert on iOS. I have read some articles for possible iOS implementation but as far as I know, there are some restrictions for background execution especially for ranging.
Nice @mahmuttaskiran
I have some workaround too for enabling foreground ranging beacons on Android. But as far as I know, in iOS you can only extend it for maximum 3 minutes ranging in background. Here is nice article from David G. Young from RadiusNetworks Extending Background Ranging on iOS.
I using these technique too BTW :)
is it possible to have beacon monitoring in background, and when a beacon is detected for the app to start in background to do some work (maybe send a notification or whatever). Right now it only works for me when the app is either in foreground or background... but not if the app is not started by user.
In Android you can extend your Flutter Application Class using these method Detecting Beacons After App is Killed. But, as you know there is always a limitation for iOS 😅
Is it possible to monitor or rang a beacon when app work in background or terminated by the os? I can get monitoring events and ranging events when app is in foreground with this plugin. I tried to show a local notification for a right condition of beacons on background, but I could not.
flutter doctor
Device