Skip to content

Commit e0ec384

Browse files
committed
Reference dependencies in example
1 parent 54e59bc commit e0ec384

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Example/www/index.html

+3
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,12 @@
6666
function onNotificationAPN(e) {
6767
if (e.alert) {
6868
$("#app-status-ul").append('<li>push-notification: ' + e.alert + '</li>');
69+
// showing an alert also requires the org.apache.cordova.dialogs plugin
6970
navigator.notification.alert(e.alert);
7071
}
7172

7273
if (e.sound) {
74+
// playing a sound also requires the org.apache.cordova.media plugin
7375
var snd = new Media(e.sound);
7476
snd.play();
7577
}
@@ -106,6 +108,7 @@
106108
// On Amazon FireOS all custom attributes are contained within payload
107109
var soundfile = e.soundname || e.payload.sound;
108110
// if the notification contains a soundname, play it.
111+
// playing a sound also requires the org.apache.cordova.media plugin
109112
var my_media = new Media("/android_asset/www/"+ soundfile);
110113

111114
my_media.play();

0 commit comments

Comments
 (0)