Forum Discussion
RedpillVRDemo
1 year agoHonored Guest
How to alert the user when a background/foreground service completes after device is asleep
I am running a foreground service that takes anywhere from 30 seconds to 5 minutes to complete. I want to play an sound from the headset once the operation is complete, however all of my attempts seem to fail. I have tried using wake locks, local-notifications, and alarms but I can't seem to get the headset to make any noise until it wakes back up when the user places the headset back on. Once you hear the boop from the headset signaling that is asleep there doesn't seem to be any way to get audio from there on.
Does anyone know how I can either wake the headset, prevent it from falling asleep, or play sound while the head set it already asleep? Sending a notification to the quest app would also work.
No RepliesBe the first to reply
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 2 months ago
- 1 month ago
- 3 months ago