Google introduces one-time location entry for app in Android 11
Final yr, Apple launched a new control for location tracking with iOS 13, which allowed apps to entry your location information solely as soon as. Now, Google has adopted its footsteps with comparable location controls with its Android 11 developer preview.
The preview, launched right this moment, additionally introduces one-time location entry for apps. The brand new Android model additionally consists of comparable permissions for microphone and digicam entry.
Moreover, Google has eliminated the “enable on a regular basis” permission from the dialogue field by default. Which means an app can’t ask for background location info on the launch. As a developer, in case your app must have background location permission, you’ll have to ask your consumer to undergo the settings and allow it explicitly.
The web page for the brand new permission suggests an app retains the permission if a foreground service is working because the permission was granted.
Your app was seen when the consumer granted the permission and has been working a foreground service ever since then. So long as the foreground service retains working, your app will retain the permission even when the consumer strikes your app to the background.
It’s not clear how lengthy this may go on for. We’ve reached out to Google for clarification, and we’ll replace the story if we hear again.
Google’s step of together with one-time permission for digicam and microphone, together with the situation, is smart and forward-thinking. It could be helpful for apps that have to confirm customers with a selfie or voice. Nevertheless, since Android rollouts are a lot slower than iOS, it’d take some time till we see these controls in each mainstream app.
Printed February 19, 2020 — 19:35 UTC