Skip to content

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

Description

@paulistoan

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions