• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..17-Mar-2025-

figures/H17-Mar-2025-

frameworks/H17-Mar-2025-109,94577,383

interfaces/H17-Mar-2025-11,5103,240

sa_profile/H17-Mar-2025-3834

services/H17-Mar-2025-70,14248,778

test/H17-Mar-2025-15,97010,380

tools/H17-Mar-2025-1,7321,184

BUILD.gnH A D17-Mar-2025617 1513

LICENSEH A D17-Mar-20259.9 KiB177150

OAT.xmlH A D17-Mar-20254.5 KiB7420

README_zh.mdH A D17-Mar-20251.8 KiB6439

bundle.jsonH A D17-Mar-20256.1 KiB184182

hisysevent.yamlH A D17-Mar-20255.1 KiB118103

notification.gniH A D17-Mar-20253.8 KiB10997

README_zh.md

1# 通知子系统
2
3## 简介
4
5OpenHarmony通过ANS(Advanced Notification Service,通知系统服务)对通知类型的消息进行管理,支持多种通知类型,包括文本,长文本,多文本,图片,社交,媒体等。所有系统服务以及应用都可以通过通知接口发送通知消息,用户可以通过SystemUI查看所有通知消息。
6
7通知常见的使用场景:
8
9- 显示接收到短消息、即时消息等。
10- 显示应用的推送消息,如广告、版本更新等。
11- 显示当前正在进行的事件,如导航、下载等。
12
13### 架构图
14
15**图1** 子系统架构图
16
17![子系统架构图](figures/ans_logical_architecture_diagram.png)
18
19
20
21## 目录
22
23```
24/base/notification/distributed_notification_service/
25├── frameworks   # 接口实现
26├── interfaces
27│   ├── inner_api    # 对内接口目录
28│   └── kits         # 对外接口目录
29├── sa_profile   # 服务配置
30├── services     # 服务实现
31└── tools        # 工具实现
32
33```
34
35
36
37## 使用说明
38
39ANS支持4种类型的通道,分别为:
40- 社交通讯
41- 服务提醒
42- 内容资讯
43- 其他
44
45应用开发者可以根据使用场景创建通道。通道创建后,提醒方式均为系统默认提醒方式。终端用户可以通过设置应用调整各通道的提醒方式。
46
47应用开发者发可发布以下类型的通知:
48- 普通文本
49- 长文本
50- 图片
51- 多行文本
52- 社交
53
54并且可调整通知的标签、分组、触发事件等属性。
55
56
57
58## 相关仓
59
60**[通知子系统](https://gitee.com/openharmony/notification_distributed_notification_service/blob/master/README_zh.md)**
61
62[SystemUI系统应用](https://gitee.com/openharmony/applications_systemui/blob/master/README_zh.md)
63
64[元能力子系统](https://gitee.com/openharmony/ability_ability_runtime/blob/master/README_zh.md)