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.
userInfo: {}, // (optional) default: {} (using null throws a JSON value '<null>' error)
335
333
336
334
/* iOS and Android properties */
335
+
id:0, // (optional) Valid unique 32 bit integer specified as string. default: Autogenerated Unique ID
337
336
title:"My Notification Title", // (optional)
338
337
message:"My Notification Message", // (required)
338
+
userInfo: {}, // (optional) default: {} (using null throws a JSON value '<null>' error)
339
339
playSound:false, // (optional) default: true
340
340
soundName:"default", // (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)
341
341
number:10, // (optional) Valid 32 bit integer specified as string. default: none (Cannot be zero)
soundName: soundName ? soundName : 'default',// (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)
69
69
number: 10,// (optional) Valid 32 bit integer specified as string. default: none (Cannot be zero)
@@ -76,7 +76,6 @@ export default class NotifService {
76
76
date: newDate(Date.now()+30*1000),// in 30 secs
77
77
78
78
/* Android Only Properties */
79
-
id: this.lastId,// (optional) Valid unique 32 bit integer specified as string. default: Autogenerated Unique ID
number: 10,// (optional) Valid 32 bit integer specified as string. default: none (Cannot be zero)
105
105
soundName: soundName ? soundName : 'default',// (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)
// for valid fields see: https://developer.apple.com/library/archive/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/PayloadKeyReference.html
171
175
// alertTitle only valid for apple watch: https://developer.apple.com/library/ios/documentation/iPhone/Reference/UILocalNotification_Class/#//apple_ref/occ/instp/UILocalNotification/alertTitle
0 commit comments