My game just got rejected on Instant review due to the following reason:
" On iPhone and iPad, games should mute any sound effects or background music when silent mode is enabled. "
Ok, but how do I detect if the silent mode is enabled? Research didn't help much, except finding this on one forum:
" I've had a response from Apple on this. They've said they don't and never have provided a method for detecting hardware mute switch and don't intend to do so."
Also, there are some workarounds, but none of them is for HTML5. Facebook recommends using the WebAudio API for that, but no further info.
Did anyone face the same issue? Btw, as I just learned, the purpose of physical silent switch on iOS devices is not to mute user initiated sounds (like games, for instance. You have volume control buttons for that), but to prevent sudden sounds (ie, alerts, phone ringing). So, how do you make your game listen to iOS silent switch and make it muted/unmuted?