You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
?color:String, // (optional) default: system default
80
+
?vibrate:Bool, // (optional) default: true
81
+
vibration:Int, // vibration length in milliseconds, ignored if vibrate=false, default: 1000
82
+
?tag:String, // (optional) add tag to message
83
+
?group:String, // (optional) add group to message
84
+
?roupSummary:Bool, // (optional) set this notification to be the group summary for a group of notifications, default: false
85
+
?ongoing:Bool, // (optional) set whether this is an "ongoing" notification
86
+
?priority:String, // (optional) set notification priority, default: high
87
+
?visibility:String, // (optional) set notification visibility, default: private
88
+
?ignoreInForeground:Bool, // (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
89
+
?shortcutId:String, // (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
90
+
?onlyAlertOnce:Bool, // (optional) alert will open only once with sound and notify, default: false
91
+
92
+
?when:Int, // (optional) Add a timestamp (Unix timestamp value in milliseconds) pertaining to the notification (usually the time the event occurred). For apps targeting Build.VERSION_CODES.N and above, this time is not shown anymore by default and must be opted into by using `showWhen`, default: null.
93
+
?usesChronometer:Bool, // (optional) Show the `when` field as a stopwatch. Instead of presenting `when` as a timestamp, the notification will show an automatically updating display of the minutes and seconds since when. Useful when showing an elapsed time (like an ongoing phone call), default: false.
94
+
?timeoutAfter:Int, // (optional) Specifies a duration in milliseconds after which this notification should be canceled, if it is not already canceled, default: null
95
+
96
+
?messageId:String, // (optional) added as `message_id` to intent extras so opening push notification can find data stored by @react-native-firebase/messaging module.
97
+
98
+
actions:Action, // (Android only) See the doc for notification actions to know more
99
+
?invokeApp:Bool, // (optional) This enable click on actions to bring back the application to foreground or stay in background, default: true
?subtitle:String, // (optional) smaller title below notification title
104
+
59
105
#end
60
-
?title:String,
61
-
message:String,
62
-
?playSound:Bool,
63
-
?soundName:String,
64
-
?number:String,
106
+
?id:Int, // (optional) Valid unique 32 bit integer specified as string. default: Autogenerated Unique ID
107
+
?title:String, // (optional)
108
+
message:String, // (required)
109
+
?userInfo: {}, // (optional) default: {} (using null throws a JSON value '<null>' error)
110
+
?playSound:Bool, // (optional) default: true
111
+
?soundName:String, // (optional) Sound to play when the notification is shown. Value of 'default' plays the default sound. It can be set to a custom sound such as 'android.resource://com.xyz/raw/my_sound'. It will look for the 'my_sound' audio file in 'res/raw' directory and play it. default: 'default' (default sound is played)
112
+
?number:Int, // (optional) Valid 32 bit integer specified as string. default: none (Cannot be zero)
113
+
?repeatType:RepeatType// (optional) Repeating interval. Check 'Repeating Notifications' section for more info.
0 commit comments