M
M
maul_dmm2015-03-31 09:23:26
JavaScript
maul_dmm, 2015-03-31 09:23:26

How to implement sound alert on mobile browsers using javascript?

There is an admin panel of the service, in which, mainly, they work through mobile devices (mainly Android). For certain events, you need to issue notifications, preferably sound ones. These notifications should be triggered by the service logic, not by the user.
There are no problems with desktop browsers. The audio tag + the play() method works great.
But on mobile browsers, this trick does not work due to the restriction on playing sound only at the request of the user.
How can this limitation be bypassed? Are there other ways of sound notifications?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Igor Bogdosarov, 2015-04-03
@Bogdosarov

I can recommend an excellent post on audio limitations and how to deal with them www.ibm.com/developerworks/ru/library/wa-ioshtml5

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question