iOS/iPhone - Metronome now works! (Patreon)
Content
Hey all, I finally figured out why the metronome wasn't working for Safari on iPhone devices. Its now fixed and should be good to go!
If you are interested, the issue is that iOS considers Audio Web API (what I use to generate the metronome beat) as a ringer sound and not a traditional audio like from a video (no idea why they decided to do this, seems nuts to me). If you have your phone on vibrate mode which 99% of people out there do, it will mute the metronome.
My fix is to play a silent video file for 1 second in the background at the same time the first beat is generated. This tricks iOS into making the beat use the video volume instead of the ringer because it first mixes both the silent audio and beat into the same output and then keeps it in that channel fixing the issue.