Commit 94e6e173 authored by Eddy Verbruggen's avatar Eddy Verbruggen
Browse files

Merge pull request #244 from BBosman/plugins

Reference dependencies in example
parents 8317414f e0ec384c
Loading
Loading
Loading
Loading
+3 −0
Changes for Example/www/index.html: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -66,10 +66,12 @@ NOTE:
            function onNotificationAPN(e) {
                if (e.alert) {
                     $("#app-status-ul").append('<li>push-notification: ' + e.alert + '</li>');
                     // showing an alert also requires the org.apache.cordova.dialogs plugin
                     navigator.notification.alert(e.alert);
                }
                    
                if (e.sound) {
                    // playing a sound also requires the org.apache.cordova.media plugin
                    var snd = new Media(e.sound);
                    snd.play();
                }
@@ -106,6 +108,7 @@ NOTE:
					                // On Amazon FireOS all custom attributes are contained within payload
					                var soundfile = e.soundname || e.payload.sound;
					                // if the notification contains a soundname, play it.
					                // playing a sound also requires the org.apache.cordova.media plugin
					                var my_media = new Media("/android_asset/www/"+ soundfile);

							my_media.play();