1# Introduction to Notification Kit 2 3With Notification Kit, you can publish local notifications from your application and push them to users on the client. Local notifications can be displayed by ringtones, vibrations, banners, lock screen, screen off, Always On Display (AOD), and notification panel based on the notification type and publishing scenario. 4 5## When to Use 6When application is running in the foreground, you can use the Notification Kit to publish notifications to users.<!--RP1--><!--RP1End--> 7You can use the local notification capability in multiple scenarios. For example, synchronize the upload and download progress of the user, send instant customer service payment notifications, and update the number of steps. 8 9## Capability Scope 10The Notification Kit supports the following capabilities: 11 - Publishes notifications in the form of text or progress bar. 12 - Carries or updates the application notification badge. 13 - Cancels one or all published notifications. 14 - Queries the list of published notifications. 15 - Queries the status of the notification function of an application. 16 - The capability of notifying users is disabled by default. You can open the authorization dialog box to request users to authorize the publishing of notifications. 17 18  19 20## Service Flow 21  22 23The main service flow of using the Notification Kit is as follows: 24 251. Request notification authorization. 26 272. Publish a notification to the Notification Kit. 28 293. Display the notification in the notification center. 30 31 32## Notification Style 33 34> **NOTE** 35> 36> The display effect depends on the device capability and notification center UI style. 37 38Common notification styles in the Notification Kit are as follows. 39| Type| Notification Style| Description| 40| ---- | --------| ------- | 41| [Text](./text-notification.md) |  | A maximum of three lines can be displayed in the notification text. Excess content is truncated by an ellipsis (...).| 42| [Multi-line text](./text-notification.md) |  | A maximum of three lines of content can be displayed. Excess content of each line is truncated by an ellipsis (...).| 43| [Notification badge](./notification-badge.md) |  | Displayed as a number in the upper right corner.| 44| [Progress bar](./progress-bar-notification.md)|  | Progress notification.| 45 46## Constraints 47- There is a limit on the number of notifications per application in the system windows. The current limit is 24. 48- The notification cannot exceed 200 KB (due to cross-process serialization). 49- The publication and update frequencies for notifications must meet the following requirements. Otherwise, the publication or update fails and the corresponding error code is returned. 50 - The total number of notifications published by an application cannot exceed 10 per second, and that of notifications updated cannot exceed 20 per second. 51 - The total number of notifications published by all third-party applications cannot exceed 15 per second, and that of notifications updated cannot exceed 30 per second. 52 <!--Del--> 53 - The total number of notifications published by all system applications cannot exceed 15 per second, and that of notifications updated cannot exceed 30 per second. 54 <!--DelEnd--> 55 56## Relationship with Related Kits 57- Notifications created by Notification Kit are displayed in the notification center or other system entries in real time. To display some scheduled notifications to remind users after the application is switched to the background or the process is terminated, for example, reminders for flash sales in shopping applications, you can use [Background Tasks Kit](../task-management/background-task-overview.md) to create notifications. Currently, notifications based on countdown, calendar, and alarm clocks are supported. 58- You can use the [getWantAgent](../reference/apis-ability-kit/js-apis-app-ability-wantAgent.md#wantagentgetwantagent) API of [Ability Kit](../application-models/abilitykit-overview.md) to set the **WantAgent** triggered when a user taps a notification.<!--RP2--> 59<!--RP2End--> 60