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

Commit a50b87b

Browse files
authored
Update README.md
May be we should update readme about local notifications for better understanding how should users setup this library on android
1 parent f724c36 commit a50b87b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ In your `android/app/src/main/AndroidManifest.xml`
8989
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
9090

9191
<application ....>
92-
<!-- Change the value to true to enable pop-up for in foreground (remote-only, for local use ignoreInForeground) -->
92+
<!-- Change the value to true to enable pop-up for in foreground on receiving remote notifications (for prevent duplicating while showing local notifications set this to false) -->
9393
<meta-data android:name="com.dieam.reactnativepushnotification.notification_foreground"
9494
android:value="false"/>
9595
<!-- Change the resource name to your App's accent color - or any other color you want -->
@@ -322,7 +322,7 @@ PushNotification.localNotification({
322322
ongoing: false, // (optional) set whether this is an "ongoing" notification
323323
priority: "high", // (optional) set notification priority, default: high
324324
visibility: "private", // (optional) set notification visibility, default: private
325-
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)
325+
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). should be used in combine with `com.dieam.reactnativepushnotification.notification_foreground` setting
326326
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
327327
onlyAlertOnce: false, // (optional) alert will open only once with sound and notify, default: false
328328

0 commit comments

Comments
 (0)