Skip to content

Commit 00d313f

Browse files
authored
docs(LocalNotifications): Update schedule sample (#2570)
1 parent 057512a commit 00d313f

File tree

1 file changed

+2
-1
lines changed
  • site/docs-md/apis/local-notifications

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Local Notifications are great for reminding the user about a change in the app s
2323
import { Plugins } from '@capacitor/core';
2424
const { LocalNotifications } = Plugins;
2525

26-
LocalNotifications.schedule({
26+
const notifs = await LocalNotifications.schedule({
2727
notifications: [
2828
{
2929
title: "Title",
@@ -37,6 +37,7 @@ LocalNotifications.schedule({
3737
}
3838
]
3939
});
40+
console.log('scheduled notifications', notifs);
4041
```
4142

4243
## API

0 commit comments

Comments
 (0)