目录

Requesting One-Time User Authorization

To comply with the minimum authorization principle and protect user data against unauthorized access from applications and abuse, the Allow this time only option is added to the user authorization dialog box for certain sensitive permissions.

During development, simply call requestPermissionsFromUser()Requesting User Authorization without any additional configurations. The system displays a dialog box based on the supported permissions.

The following figure shows an example of the user authorization dialog box.

In addition, users can modify the authorization in Settings. Path: Settings > Privacy > Permission manager > Apps > Target application > Location

Supported Permissions

Currently, the Allow this time only option is available only for the following permissions. When an application requests any of these permissions, the user authorization dialog box displayed contains the Allow this time only option, and permission settings dialog box contains the Ask each time option.

Constraints