harmony 鸿蒙reminderAgentManager Error Codes
reminderAgentManager Error Codes
NOTE
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
- The application has not requested notification to be enabled.
- The reminder function is disabled.
Solution
- Call Notification.requestEnableNotification to request notification to be enabled for the application.
- 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
- The number of reminders generated for the entire system exceeds 2000 in API version 9 or 12000 in API version 10 or later.
- The number of reminders generated for the application exceeds 30 in API version 9 or 30 (for a common application) or 10000 (for a system application) in API version 10 or later. 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
- The reminder has expired.
- The reminder has been deleted.
Solution
- Check whether the reminder is valid.
- 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
- The bundle name is incorrect.
- The application is not installed.
Solution
Check whether the bundle name exists.
你可能感兴趣的鸿蒙文章
harmony 鸿蒙Background Tasks Kit
harmony 鸿蒙BackgroundProcessManager
harmony 鸿蒙TransientTask_DelaySuspendInfo
harmony 鸿蒙background_process_manager.h
harmony 鸿蒙DeviceUsageStatistics Error Codes
harmony 鸿蒙backgroundTaskManager Error Codes
harmony 鸿蒙workScheduler Error Codes
harmony 鸿蒙@ohos.WorkSchedulerExtensionAbility (Deferred Task Scheduling Callbacks)
harmony 鸿蒙@ohos.resourceschedule.backgroundProcessManager (Background Child Process Management)
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦