My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

Ranging iBeacons not working in background with Flutter for Android 8+

Akshay Gajarlawar's photo
Akshay Gajarlawar
·Jun 7, 2020

I'm using flutter_beacon for detecting iBeacons in one of my flutter project. Its working fine in foreground and in background for android version below 8. But its not detecting beacons in background for android version 8 and above.

As per Background location limits : Android 8.0 (API level 26) limits how frequently background apps can retrieve the user's current location. Apps can receive location updates only a few times each hour.

I've also reported an issue to Github with the example code here

Is there any extra code I have to write in order to make android device with version 8+ be able to detect beacons in background ?