Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onPause does not work on iOS when running in background #101

Open
paulistoan opened this issue Jan 13, 2024 · 1 comment
Open

onPause does not work on iOS when running in background #101

paulistoan opened this issue Jan 13, 2024 · 1 comment

Comments

@paulistoan
Copy link

paulistoan commented Jan 13, 2024

Please see a sample app attached. Basically when playing on iOS, the onPause handler does not seem to get called when running in the background. By running in the background, I mean starting to play, then locking the screen and using the lock screen pause button to pause playback. Interestingly, with the HTML audio element it seems to work. I also included this in the sample app for comparison.

In order to reproduce, please start up the node server in a separate process so that it can receive background events and print them to stdout. Also, please include a real mp3 in the src and url properties in src/App.js.

demo.tar.gz

@paulistoan
Copy link
Author

Also found this past bug report, which is now resolved, might be of interest: https://bugs.webkit.org/show_bug.cgi?id=173332

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant