diff --git a/en/react-native-permissions.md b/en/react-native-permissions.md index a68611389a8e1c1cff3b5361c0958134b2be1852..af5245737dd26a4f63500efc6f3dea3e706ec01f 100644 --- a/en/react-native-permissions.md +++ b/en/react-native-permissions.md @@ -426,7 +426,7 @@ The permission is granted to the application if the user selects **Always allow* | Name | Description | Type | Required | Platform | HarmonyOS Support | | ----------------------- | ---------------------- | -------- | -------- | ----------- | ------------------------------------------------------------ | | check | Checks a single permission. | Function | no | iOS, Android| yes | -| checkNotifications | Checks the notification permission. | Function | no | iOS, Android| yes | +| checkNotifications | Checks the notification permission. | Function | no | iOS, Android| yes (In return values below API 20, 'settings' is empty. API 20 added a method that can return non-empty 'settings', including permissions for sound and vibration notifications.) | | openSettings | Opens the settings page. | Function | no | iOS, Android| yes | | request | Sets a single permission. | Function | no | iOS, Android| yes | | requestNotifications | Set the notification permission. | Function | no | iOS, Android| yes | diff --git a/zh-cn/react-native-permissions.md b/zh-cn/react-native-permissions.md index 1544904d8e629ac9008aa076d34296cd7f73adee..2fc258115e5b9819f99c65d189f071e1d26e8971 100644 --- a/zh-cn/react-native-permissions.md +++ b/zh-cn/react-native-permissions.md @@ -432,7 +432,7 @@ ohos.permission.LOCATION_IN_BACKGROUND 允许应用在后台运行时获取设 | Name | Description | Type | Required | Platform | HarmonyOS Support | | ----------------------- | ------------------|----|---------| ----------- | ------------------------ | | check | 检查单个权限 | Function | no | iOS,Android | yes | -| checkNotifications | 检查通知权限 | Function | no | iOS,Android | yes | +| checkNotifications | 检查通知权限 | Function | no | iOS,Android | yes(API20以下的返回值中settings为空,API20新增了方法可返回非空settings,包含响铃与振动通知权限) | | openSettings | 打开设置页 | Function | no | iOS,Android | yes | | request | 设置单个权限 | Function | no | iOS,Android | yes | | requestNotifications | 设置通知权限 | Function | no | iOS,Android | yes |