I was testing my Html5 game protoyte, i tested it on desktop, then android but on iOS/iphone after the loading bar was completed it showed error and refreshed the page, after 8 hours of thinking and trying i noticed it was caused by a short length audio file (0.02 secs), after i replaced it with the same file but extra length (total length of 0.1 secs) the problem was solved!
I hope if anyone runs into this problem this will help!
Develop games in your browser. Powerful, performant & highly capable.
It is a bug in iOS. It can be worked-around with adding some silence at the end of the short sound.
We have to wait until Apple fixes this bug.