• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Advanced Notification Manager
2
3The Advanced Notification Manager enables you to print notifications and set notification parameters. It provides the notification debugging and testing capabilities, for example, printing published notification details, setting the number of notification caches, and enabling the notification functionality.
4
5> **NOTE**
6>
7> Before using this tool, you must obtain the [hdc tool](../../device-dev/subsystems/subsys-toolchain-hdc-guide.md) and run the hdc shell command.
8
9### help
10
11* **Function**
12
13  Prints help information.
14
15* **Method**
16
17  ```bash
18  anm help
19  ```
20
21### dump
22
23* **Function**
24
25  Prints information about notifications.
26
27* **Method**
28
29  ```bash
30  anm dump [<options>]
31  ```
32
33  The table below describes the available options.
34
35  | Name            | Description                          |
36  | ---------------- | ---------------------------------- |
37  | -A/--active      | Information about all active notifications.            |
38  | -R/--recent      | Information about recent notifications.                |
39  | -D/--distributed | Information about distributed notifications from other devices.  |
40  | -b/--bundle      | Bundle name. Optional.|
41  | -u/--user-id     | User ID. Optional.    |
42  | -h/--help        | Help information.                          |
43
44* **Example**: Print information about active notifications.
45
46  ```bash
47  anm dump -A
48  ```
49  ![anm-dump-A](figures/anm-dump-A.png)
50
51### Setting
52
53* **Function**
54
55  Sets notification parameters.
56
57* **Method**
58
59  ```bash
60  anm setting [<options>]
61  ```
62
63  The table below describes the available options.
64
65  | Name                    | Description                            |
66  | ------------------------ | ------------------------------------ |
67  | -c/--recent-count        | Maximum number of recent notifications stored in the memory.|
68  | -e/--enable-notification | Whether to enable the notification capability.                    |
69  | -h/--help                | Help information.                            |
70
71* **Example**: Set the maximum number of recent notifications stored in the memory to 100.
72
73  ```bash
74  anm setting -c 100
75  ```
76