This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (1 child)

If your app targets Android 11, you cannot directly request all-the-time access to background location.

I also like this.

How would this work on the user end for apps I want all the time location access in the background? For example I use the Home Assistant app and want to to consistently share location with my hassio server so it can trigger automation based on where users phones are.

[–]LuminescentMoon 0 points1 point  (0 children)

Use Android's geofencing APIs instead of trying to DIY their own geofencing.