目录

reminderAgentManager Error Codes

This topic describes only module-specific error codes. For details about universal error codes, see Universal Error Codes.

1700001 Notification Disabled

Error Message

Notification is not enabled.

Description

The application is not allowed to send notifications when publishReminder() is called.

Possible Causes

  1. The application has not requested the notification to be enabled.
  2. The notification feature is not enabled for the application.

Solution

  1. Use notificationManager.requestEnableNotification to request the notification to be enabled.
  2. Enable notification for the application in the notification settings.

1700002 Too Many Reminders

Error Message

The number of reminders exceeds the limit.

Description

The number of reminders exceeds the limit when publishReminder() is called.

Possible Causes

  1. Due to restrictions, if a common app does not have the permission to use agent-powered reminders, the maximum number of reminders for the app is 0.
  2. The maximum number of reminders for apps varies depending on the API version:
    • For API version 26.0.0 and later versions, a maximum of 64 reminders can be set for a single common app.
    • For API version 25 and earlier versions, a maximum of 30 reminders can be set for a single common app.
  3. Since API version 10, the total number of reminders for all apps cannot exceed 12,000. For API version 9 and earlier versions, the total number of reminders cannot exceed 2,000.

Solution

  1. First, check whether you have have requested the permission to use agent-powered reminders. Due to system restrictions and the limited number of existing devices running HarmonyOS 5.1.1(19) or earlier versions, newly requested permissions will not take effect on these versions. You are advised to update the system to HarmonyOS 6.0.0 (20) or later.
  2. After the request is approved, first check whether the signature is correctly configured. If not, generate a new profile and use the manual signature. Then, check whether the number of reminders exceeds the limit and delete unnecessary reminders in a timely manner.

1700003 Nonexistent Reminder

Error Message

The reminder does not exist.

Description

The reminder passed in cancelReminder() does not exist.

Possible Causes

  1. The reminder has expired.
  2. The reminder has been deleted.

Solution

  1. Check whether the reminder is valid.
  2. Check whether the reminder has been deleted.

1700004 Nonexistent Bundle Name

Error Message

The bundle name does not exist.

Description

The bundle name passed is not found.

Possible Causes

  1. The bundle name is incorrect.
  2. The application is not installed.

Solution

Check whether the bundle name exists.

1700007 Invalid Parameter

Error Message

If the input parameter is not valid parameter.

Description

The input parameter is invalid.

Possible Causes

The parameter does not comply with the rules.

Solution

Make sure all the mandatory parameters are passed in and the parameter types are valid. If parameter verification fails, read the parameter specifications and locate the fault based on the possible causes.