Urgent.News

What's breaking now, across thousands of outlets.

Tech

Italy fines Meta $887 million over Android users' data access

Italy fines Meta $887 million over Android users' data access

Android offers two types of permissions: those that trigger a dialog and others that do not. Special access permissions are those that require users to access the Settings screen to grant or deny access. Developers using Flutter need to handle three separate tasks for each special permission: checking if access is granted, finding the correct Settings screen for the Android version, and determining what happens after the user returns. android_special_permissions simplifies this process by managing all special permissions in one API.

It provides status() to check granted or denied status, openSettings() to open the appropriate Settings screen, and request() to wait for user input and return the updated status. The plugin supports 13 special permissions, including usageAccess, overlay, accessibilityService, and more. To use android_special_permissions, add it from GitHub and declare the required permissions in the AndroidManifest.xml for the accesses used by your app.

Access each permission using status(), request(), or roleStatus() as needed. Some special permissions have specific requirements, such as overlay existing from API 23 and exactAlarm from API 31. The plugin handles most Settings screens, but default-app roles require Android 29 or later. Always check Google Play's policy center before releasing your app.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

This story

This is one outlet's version. Read the fullest account.

Read the original at channelnewsasia.com →

More in Tech

A gadget to make your dumb house smarter

Hi, friends! Welcome to Installer No. 152, your guide to the best and Verge-iest stuff in the world. (If you're new here, welcome, thank you for taking time away from Zelda to be here, and also you…

More from Saturday 14 November →