FormularSumo / Galaxy-Collection-Web

Website/Web App version of the game hosted on GitHub Pages
https://formularsumo.github.io/Galaxy-Collection-Web/
GNU Affero General Public License v3.0
2 stars 0 forks source link

Audio doesn't play until you start a battle on Android, not at all on iOS #14

Open FormularSumo opened 2 weeks ago

FormularSumo commented 2 weeks ago

I don't think this used to be an issue, so I guess it broke in something I changed recently - maybe related to https://github.com/FormularSumo/Star-Wars-Galaxy-Collection/issues/115, although it shouldn't have any effect on when audio plays - only on what track plays.

For some reason PWAs in Chrome Android work fine. In browser and Firefox anywhere don't. I do wonder if some of the differences between PWA behaviour in the two (here + #10) is because of Google's self-preferencing with webAPKs. Testing other Chromium browsers would be a good idea to test this. Regardless, Google should be forced to open this up to everyone else at some point next year which is good for PWAs regardless of whether it's causing any differences here.

Audio not playing at all on iOS reminds me of what happened on #6. iOS seems really reluctant to clear my site data for the game which might not be helping. Whenever I try and play it in any browser or PWA (which should have separate data.. as should PWA) it now crashes during loading with an exception error, but loading the desktop version works fine. So I'm assuming the mobile version is somehow still using old code which was actually broken on iOS, and maybe the desktop one has somehow got stuck running the compatibility version (even though it has other more recent code?)?? I have no idea, it doesn't really make sense. Maybe I'll get someone else with an iOS device to test it out, as I don't have any others here. Alternatively could look more into resetting Safari/iOS browser data.