I\'m working on a website that has a chat for a client, however, we\'re experiencing problems with audio in iPad (iOS 5).
The target is in fact the iPad with support
Well, the answer was somewhat obvious.
After a lot of time spending doing research etc, I've found an article in the official documentation of Safari saying:
In Safari on iOS (for all devices, including iPad), where the user may be on a cellular network and be charged per data unit, preload and autoplay are disabled. No data is loaded until the user initiates it. This means the JavaScript play() and load() methods are also inactive until the user initiates playback, unless the play() or load() method is triggered by user action. In other words, a user-initiated Play button works, but an onLoad="play()" event does not.
So, basically, you can't launch a sound without the user triggering it at first. As solution I created a mute button that is off on default, so you have to click it which plays the notification sound. Afterwards I can use Javascript to play the sound without user interaction.
Thank you Safari for this great future. Thanks a lot.