The BuildFire framework does not appear to be resuming audio playback on Android, though this feature is still working correctly on iOS.
Back in February 2017 I submitted an issue (https://github.com/BuildFire/sdk/issues/327, which has since been deleted) to request this audio resume functionality. It was added by Attila Buturla, with final completion of the functionality in April 2017.
Steps to reproduce the bug:
- Launch the Radio HaHa app (App ID cae968ad-9fa0-11e6-8a24-067ad0e445f5) on an Android device. Audio starts playing.
- Set the phone into airplane mode. Audio stops due to the loss of connectivity.
- Take the phone out of airplane mode.
Expected result: the audio should resume automatically, regardless of whether the app is in the foreground or background.
Bug: the audio does not resume automatically. Instead, the user has to bring the app back to the foreground and press the play button.
The app is using
buildfire.services.media.audioPlayer for playback:
var audioPlayer = buildfire.services.media.audioPlayer;
audioPlayer.play(new Track('Radio Ha-Ha!', url));