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.
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