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
Copy file name to clipboardExpand all lines: README.md
+2-3Lines changed: 2 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,7 @@ You can pass several options to this function, everything is optional:
48
48
|`ticker`|On Android you can show a different text in the statusbar, instead of the `body`. Default not set, so `body` is used.|
49
49
|`at`|A JavaScript Date object indicating when the notification should be shown. Default 'now'.|
50
50
|`badge`|On iOS (and some Android devices) you see a number on top of the app icon. On most Android devices you'll see this number in the notification center. Default not set (0).|
51
-
|`sound`|Set this to `null` to suppress the default sound.|
51
+
|`sound`|Notification sound. For custom notification sound, copy sound file in ```App_Resources/iOS``` (iOS) and ```App_Resources/Android/raw``` (Android). Set this to "default" (or do not set at all) in order to use default OS sound. Set this to `null` to suppress sound.|
52
52
|`interval`|Set to one of `second minute hour day week month quarter year` if you want a recurring notification.|
53
53
|`smallIcon`|On Android you can set a custom icon in the system tray. Pass in 'res://filename' (without the extension) which lives in App_Resouces/Android/drawable folders. If not passed, we look for a file named 'ic_stat_notify.png' in the App_Resources/Android/drawable folders. Default: the app icon.|
54
54
|`largeIcon`|Same as `smallIcon`, but this one is shown when you expand the notification center. The optional file we look for is not 'ic_stat_notify.png' but 'ic_notify.png'.|
@@ -69,7 +69,7 @@ Note that after a reboot the `smallIcon` and `largeIcon` are not restored but fa
69
69
ongoing:true, // makes the notification ongoing (Android only)
70
70
smallIcon:'res://heart',
71
71
interval:'minute',
72
-
sound:null, //suppress the default sound
72
+
sound:require("application").ios?"customsound-ios.wav":"customsound-android", //can be also `null`, "default"
73
73
at:newDate(newDate().getTime() + (10*1000)) // 10 seconds from now
74
74
}]).then(
75
75
function() {
@@ -195,5 +195,4 @@ If the `requestPermission` or `schedule` functions previously ran you may want t
195
195
Let us know what you need by opening a Github issue.
196
196
197
197
We're thinking about adding support for things like:
0 commit comments