I have a count-down timer app that uses a Service module. It generates a sound when it reaches zero. If I start it at 1 min and then turn-off the phone, the sound won't play. After the timer is over, when I turn the phone back on, the sound plays. It's as if the sound is in some sort of queue, and can't play til the phone is turned on. I have experimented with different methods for generating the sound:
MediaPlayer
Notification.sound
Beep
They all work the same. They won't play when the phone is off, but do play when the phone is turned back on. I have downloaded count-down timers from Google Play and they do play a sound when the phone is off. So it's not the phone and it's not Android. It must be B4A. Is there a way in B4A to play a sound when the phone is off? Thanks.