diff --git a/zh-cn/application-dev/notification/background-agent-scheduled-reminder-guide.md b/zh-cn/application-dev/notification/background-agent-scheduled-reminder-guide.md index fb17772601924c83316feb8c831d59043f457738..4d73ab1999357e7589793f01d6610594f6f71846 100644 --- a/zh-cn/application-dev/notification/background-agent-scheduled-reminder-guide.md +++ b/zh-cn/application-dev/notification/background-agent-scheduled-reminder-guide.md @@ -133,7 +133,10 @@ interface LocalDateTime:时间信息实例 ## 开发步骤 > ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** -> 应用需要配置权限:ohos.permission.PUBLISH_AGENT_REMINDER + +> 1. 应用需要配置权限:ohos.permission.PUBLISH_AGENT_REMINDER + +> 2. 应用需要申请通知弹窗:[Notification.requestEnableNotification](../reference/apis/js-apis-notification.md#notificationrequestenablenotification8) 发布一个10秒倒计时提醒 diff --git a/zh-cn/application-dev/reference/apis/js-apis-reminderAgent.md b/zh-cn/application-dev/reference/apis/js-apis-reminderAgent.md index 1eeac0b120561544853a5bb7d61c883c20f08645..c1d722353eb0018ce1d0652c30989421da5cf403 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-reminderAgent.md +++ b/zh-cn/application-dev/reference/apis/js-apis-reminderAgent.md @@ -21,6 +21,9 @@ publishReminder(reminderReq: ReminderRequest, callback: AsyncCallback<number& 发布一个后台代理提醒,使用callback方式实现异步调用。 +> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> 应用需要申请通知弹窗:[Notification.requestEnableNotification](js-apis-notification.md#notificationrequestenablenotification8)。 + **需要权限**: ohos.permission.PUBLISH_AGENT_REMINDER **系统能力**: SystemCapability.Notification.ReminderAgent @@ -50,6 +53,9 @@ publishReminder(reminderReq: ReminderRequest): Promise<number> 发布一个后台代理提醒,使用Promise方式实现异步调用。 +> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> 应用需要申请通知弹窗:[Notification.requestEnableNotification](js-apis-notification.md#notificationrequestenablenotification8)。 + **需要权限**: ohos.permission.PUBLISH_AGENT_REMINDER **系统能力**: SystemCapability.Notification.ReminderAgent