errorcode-reminderAgentManager.md 1.6 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
# reminderAgentManager Error Codes

## 1700001 Notification Disabled

**Error Message**

Notification does not enable.

**Description**

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

**Possible Causes**

1. The application has not requested notification to be enabled.
2. The reminder function is disabled.

**Solution**

1. Call [Notification.requestEnableNotification](../apis/js-apis-notification.md#notificationrequestenablenotification8) to request notification to be enabled for the application.
2. Check whether the notification function is disabled.

## 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. There are already 2000 reminders for the entire system.
2. There are already 30 reminders for the application.

**Solution**

Delete unnecessary reminders.

## 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 package 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.