Skip to content

Commit

Permalink
updated local notification config docs (#2601)
Browse files Browse the repository at this point in the history
Co-authored-by: Andy Sousa <andy.sousa@carrier.com>
  • Loading branch information
andysousa and Andy Sousa authored Mar 19, 2020
1 parent 4fc5039 commit 9997b3e
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions site/docs-md/apis/local-notifications/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,22 @@ const notifs = await LocalNotifications.schedule({
console.log('scheduled notifications', notifs);
```

## Local Notifications configuration (Android only)

The local notification plugin allows the following configuration values to be added in `capacitor.config.json` for the Android platform:

- `smallIcon`: It allows you to set the default icon for the local notification.
- `iconColor`: It allows you to set the default color for the local notification icon.

```json
"plugins": {
"LocalNotifications": {
"smallIcon": "ic_stat_icon_config_sample",
"iconColor": "#488AFF"
}
}
```

## API

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

0 comments on commit 9997b3e

Please sign in to comment.