So this is weird.
I’ve got my game working with Capacitor for iOS. But it will only work if I set:
audio: {
noAudio: true
},
Or to disableWebAudio true to force HTML5 audio, but I don’t consider these solutions as one has no sound, and the other lags like crazy.
The game logs the following:
Error: There is no audio asset with key “xxxx” in the audio cache
Where xxxx is the name of my asset(s) (if I comment out one play call, the next one causes the same issue).
The sound works fine in the browser, but in a Capacitor app it doesn’t.
Any ideas?