Commit f70b1045 authored by Russell Beattie's avatar Russell Beattie
Browse files

Update README.md

Updating sound file section as e.soundname doesn't work on Fire OS. Probably should test it though.
parent 7814be0f
Loading
Loading
Loading
Loading
+4 −1
Changes for README.md: 4 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -398,8 +398,11 @@ function onNotification(e) {
		{
			$("#app-status-ul").append('<li>--INLINE NOTIFICATION--' + '</li>');
			
			// on Android soundname is outside the payload. 
			// 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.
			var my_media = new Media("/android_asset/www/"+e.soundname);
			var my_media = new Media("/android_asset/www/"+ soundfile);
			my_media.play();
		}
		else