Name | Date | Size | ||
---|---|---|---|---|
.. | 25-Oct-2024 | 4 KiB | ||
.gitignore | H A D | 25-Oct-2024 | 135 | |
AppScope/ | H | 25-Oct-2024 | 4 KiB | |
build-profile.json5 | H A D | 25-Oct-2024 | 1.1 KiB | |
entry/ | H | 25-Oct-2024 | 4 KiB | |
hvigor/ | H | 25-Oct-2024 | 4 KiB | |
hvigorfile.js | H A D | 25-Oct-2024 | 168 | |
hvigorw | H A D | 25-Oct-2024 | 2.1 KiB | |
hvigorw.bat | H A D | 25-Oct-2024 | 2 KiB | |
notification/ | H | 25-Oct-2024 | 4 KiB | |
oh-package.json5 | H A D | 25-Oct-2024 | 824 | |
ohosTest.md | H A D | 25-Oct-2024 | 1.4 KiB | |
README.md | H A D | 25-Oct-2024 | 1.3 KiB | |
README_zh.md | H A D | 25-Oct-2024 | 7.8 KiB | |
screenshots/ | H | 25-Oct-2024 | 4 KiB |
README.md
1# Custom Notification 2 3### Introduction 4 5This sample shows how to enable the notification feature and how to publish and cancel notifications of various types. 6 7**How to Implement** 8 91. Implement the notification sender functions as instructed in [Notification](https://gitee.com/openharmony/docs/blob/master/en/application-dev/notification/Readme-EN.md). 10 112. Implement the APIs described in [@ohos.notification (Notification)](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-notification.md). 12 13**How to Use** 14 151. Start the app. When prompted to allow the app to send notifications, touch the Allow button. 16 172. To publish a notification, touch the button corresponding to the type of notification you want to publish. Swipe down from the status bar to view the published notifications. 18 193. Touch **Cancel all notifications** to cancel all notifications published by the app. 20 21**Display Effect** 22 23 24 25### Required Permissions 26 27N/A 28 29### Dependency 30 31N/A 32 33### Constraints 34 351. This sample can only be run on standard-system devices. 36 372. This sample supports only the SDK of API version 9 (SDK version: 3.2.11.9). 38 393. DevEco Studio 3.1 Canary1 (Build Version: 3.1.0.100) must be used.