From d57cd36bb7ed0e07bc39868f24cf05356bce3e0e Mon Sep 17 00:00:00 2001 From: sesont97 Date: Thu, 16 Oct 2025 09:33:58 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E5=AF=B9react-native-permissions?= =?UTF-8?q?=E5=BA=93=E7=9A=84checkNotifications=E8=BF=9B=E8=A1=8C=E6=A0=87?= =?UTF-8?q?=E6=B3=A8=E8=A1=A5=E5=85=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- en/react-native-permissions.md | 2 +- zh-cn/react-native-permissions.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/en/react-native-permissions.md b/en/react-native-permissions.md index a6861138..af524573 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 1544904d..2fc25811 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 | -- Gitee