Search code examples
javascriptgoogle-chromeprogressive-web-appsautoplayweb-audio-api

Enable audio autoplay in Chrome for web apps installed on the user's Android desktop


I have developed a progressive web app that can be run in kiosk mode / standalone from the user's Android desktop.

On websites, Chrome's Autoplay policy prevents me from playing media programatically if there was no prior user interaction with the website. But this also applies to the PWA. Is there a flag for the manifest or some other solution to allow playback without user gesture in kiosk mode?

(I don't understand why someone wants to prohibit autoplay of media in a PWA that the user has explicitly installed on the desktop.)


Solution

  • Finally I can confirm it has been a bug, which is fixed in Chrome version 76.

    https://bugs.chromium.org/p/chromium/issues/detail?id=977666

    Now it works as expected.