Skip to content

Commit

Permalink
docs(LocalNotifications): Update schedule sample (#2570)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile authored Mar 13, 2020
1 parent 057512a commit 00d313f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion site/docs-md/apis/local-notifications/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Local Notifications are great for reminding the user about a change in the app s
import { Plugins } from '@capacitor/core';
const { LocalNotifications } = Plugins;

LocalNotifications.schedule({
const notifs = await LocalNotifications.schedule({
notifications: [
{
title: "Title",
Expand All @@ -37,6 +37,7 @@ LocalNotifications.schedule({
}
]
});
console.log('scheduled notifications', notifs);
```

## API
Expand Down

0 comments on commit 00d313f

Please sign in to comment.