loup-v / beacons

Flutter beacons plugin for Android and iOS.
Apache License 2.0
78 stars 53 forks source link

Background monitoring stops when terminating app on Android 7 #34

Open magnus-lpa opened 5 years ago

magnus-lpa commented 5 years ago

I'm running the example app on a Huawei Honor 6X with Android 7.0, and monitoring works fine as long as the app is running, i.e. it is either visible or just "minimized" by pressing the home button. If I force close the app or terminate it from the recent apps list (not sure if that does the same thing as a force close?), background monitoring events fail to produce notifications.

From reading the Background monitoring section in the README, I'm under the impression that background monitoring should continue even if the app is terminated? Sadly, this is not the case on my device. And since Android can kill apps unexpectedly, this behavior kind of means that this plugin doesn't really support background monitoring in any practical sense. Normal smartphone users wouldn't expect that they need to open the app periodically to make sure it's not terminated, they expect to install the app, open it once and then never have to do anything again but still receive beacon events in the background, just like SMS or calls.