Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.

Commit 2db1e05

Browse files
authored
Update README.md
1 parent f3a7760 commit 2db1e05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,6 @@ PushNotification.localNotification({
326326
priority: "high", // (optional) set notification priority, default: high
327327
visibility: "private", // (optional) set notification visibility, default: private
328328
importance: "high", // (optional) set notification importance, default: high
329-
allowWhileIdle: false, // (optional) set notification to work while on doze, default: false
330329
ignoreInForeground: false, // (optional) if true, the notification will not be visible when the app is in the foreground (useful for parity with how iOS notifications appear)
331330
shortcutId: "shortcut-id", // (optional) If this notification is duplicative of a Launcher shortcut, sets the id of the shortcut, in case the Launcher wants to hide the shortcut, default undefined
332331
channelId: "your-custom-channel-id", // (optional) custom channelId, if the channel doesn't exist, it will be created with options passed above (importance, vibration, sound). Once the channel is created, the channel will not be update. Make sure your channelId is different if you change these options. If you have created a custom channel, it will apply options of the channel.
@@ -364,6 +363,7 @@ PushNotification.localNotificationSchedule({
364363
//... You can use all the options from localNotifications
365364
message: "My Notification Message", // (required)
366365
date: new Date(Date.now() + 60 * 1000), // in 60 secs
366+
allowWhileIdle: false, // (optional) set notification to work while on doze, default: false
367367
});
368368
```
369369

0 commit comments

Comments
 (0)