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
{{ message }}
This repository was archived by the owner on Jan 14, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: example/NotifService.js
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -87,14 +87,15 @@ export default class NotifService {
87
87
ongoing: false,// (optional) set whether this is an "ongoing" notification
88
88
actions: ['Yes','No'],// (Android only) See the doc for notification actions to know more
89
89
invokeApp: true,// (optional) This enable click on actions to bring back the application to foreground or stay in background, default: true
90
-
90
+
91
91
when: null,// (optionnal) Add a timestamp 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.
92
92
usesChronometer: false,// (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.
93
93
timeoutAfter: null,// (optional) Specifies a duration in milliseconds after which this notification should be canceled, if it is not already canceled, default: null
94
94
95
95
/* iOS only properties */
96
96
category: '',// (optional) default: empty string
97
-
97
+
subtitle: "My Notification Subtitle",// (optional) smaller title below notification title
98
+
98
99
/* iOS and Android properties */
99
100
id: this.lastId,// (optional) Valid unique 32 bit integer specified as string. default: Autogenerated Unique ID
0 commit comments