+ 1

iOS prohibits sound playing

Thanks to a report by marjel101 that this code doesn't work for iOS. https://code.sololearn.com/WaYqkYRj6jTD/?ref=app Description : The user cannot close the Terms and Condition page. My guess : I suspect that the problem is with these pairs: var correct = new Audio('https://www.dropbox.com/s/ehdu5ilfh5f96h8/Sololearn%20Correct.mp3?dl=1&raw=1'); at current line 1398, and correct.play(); at current line 1357. which is also known as "user gesture protection". But I am not sure. And even if it is, I don't know how to solve it 🤷‍♂️

25th Jun 2019, 2:01 PM
Gordon
Gordon - avatar
3 Respostas
+ 2
I wish i could find a solution, but i got no iPhone here..😟
26th Jun 2019, 8:32 AM
Calviղ
Calviղ - avatar
+ 1
Hmm… 🤔 Waiting for someone's solution Too bad I can't test this on my phone
25th Jun 2019, 8:06 PM
Emoji FanBoy
Emoji FanBoy - avatar
0
marjel101 had offered to use touchstart event listener, which facilitate closing of the modal box. but either way, she couldn't hear the ding sound. 🤔
26th Jun 2019, 9:25 AM
Gordon
Gordon - avatar