Version: 1.3
语言 : 中文
Declare permissions for an application
Building and delivering for OpenHarmony

Request runtime permissions

This page explains how to request the user’s permission for your application to access data on the device or use a device feature such as a built-in camera or microphone.

For more information on when and how to request permissions on an OpenHarmony device, refer to App permissions best practices in the OpenHarmony developer guide.

Prerequisites

Before the application requests permission to use restricted data or a particular device feature, it must declare the permission in its OpenHarmony App Module. For more information, refer to Declare permissions for an application.

Declare permissions for an application
Building and delivering for OpenHarmony