Skip to content

Commit 9997b3e

Browse files
andysousaAndy Sousa
andauthored
updated local notification config docs (#2601)
Co-authored-by: Andy Sousa <andy.sousa@carrier.com>
1 parent 4fc5039 commit 9997b3e

File tree

1 file changed

+16
-0
lines changed
  • site/docs-md/apis/local-notifications

1 file changed

+16
-0
lines changed

site/docs-md/apis/local-notifications/index.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,22 @@ const notifs = await LocalNotifications.schedule({
4040
console.log('scheduled notifications', notifs);
4141
```
4242

43+
## Local Notifications configuration (Android only)
44+
45+
The local notification plugin allows the following configuration values to be added in `capacitor.config.json` for the Android platform:
46+
47+
- `smallIcon`: It allows you to set the default icon for the local notification.
48+
- `iconColor`: It allows you to set the default color for the local notification icon.
49+
50+
```json
51+
"plugins": {
52+
"LocalNotifications": {
53+
"smallIcon": "ic_stat_icon_config_sample",
54+
"iconColor": "#488AFF"
55+
}
56+
}
57+
```
58+
4359
## API
4460

4561
<plugin-api name="local-notifications"></plugin-api>

0 commit comments

Comments
 (0)