Hotfix for backgrounded/suspended IOS issue#1660
Conversation
- Verified working on IOS 14/15/16 - Issue was that after a certain amount of time after backgrounding the app and then coming back (~10-40 secs), audio would be forever muted
|
I don't have write access, but anybody who does feel free to merge this. |
|
Can someone please merge this PR ??? We want the fix as we are facing issues on older IOS devices. |
|
I would love this fix as well for an app I'm working on. Is there any possibility of this being merged/published soon? |
|
For what it's worth, I realized that my particular issue with the suspending of audio (after returning from inactivity) was being caused by Howler's global
Disabling this global setting solved my particular issue. import { Howl, Howler } from 'howler';
Howler.autoSuspend = false;Hope this helps someone! |
|
Okay, even after setting @goldfire Any possibility of reviewing/merging this PR soon? It would be wonderful to have in the official package. |
|
To fix this problem, I had to use the fork too. I would be glad if this PR is reviewed faster |
|
We have to use this fork as well... but It would be great if you could merge this PR as soon as possible! :) |
|
I also confirm this commit fixes the issue. Any chance it could be merged? |
|
It's been quite a while, is there a reason this hasn't been merged? |
|
I am having this issue also, and it would be really nice if this could be merged. Tested and works after this fix. |
|
Worth mentioning here that this does not fix issue on latest IOS, please see this fix for that: #1770 |
This fixes a bug where the audiocontext gets suspended by iOS when the document.visibilityState changes. See goldfire/howler.js#1660 goldfire/howler.js#1770 goldfire/howler.js#1702 goldfire/howler.js#1771 Good to note this is not a Howler bug, it's an iOS bug. We have tried several audio libraries that all produced the same behaviour.
Issue/Feature
Issue was that after a certain amount of time after backgrounding the app and then coming back (~10-40 secs), audio would be forever muted.
Related Issues
Solution
Reproduction/Testing
On IOS 14/15/16, background an app using Howler for 10/20/30/40/50 seconds, and then return to that app and observe if audio is working or not.
Breaking Changes
This could break instances where the state is 'running' and we should not be resuming the context because the state is not interrupted, but I haven't seen this happen yet in testing.