diff --git a/audio/silence.mp3 b/audio/silence.mp3 new file mode 100644 index 0000000000..eb13dbb674 Binary files /dev/null and b/audio/silence.mp3 differ diff --git a/js/app.js b/js/app.js index e6e130154b..261c544a22 100644 --- a/js/app.js +++ b/js/app.js @@ -61,6 +61,15 @@ define(["webL10n", "sugar-web/graphics/icon", "sugar-web/graphics/xocolor", "sug } }, false); + // HACK: on iOS, create a media to initialize sound + if (enyo.platform.ios && document.location.protocol.substr(0,4) != "http") { + document.addEventListener("deviceready", function() { + var release = function() { media.release(); } + var media = new Media("audio/silence.mp3", release, release, release); + media.play(); + }); + } + // Wait for DOM is ready. requirejs(['domReady!'], function (doc) { if (--toload == 0) {