ARTICLE AD BOX
I am working on a React Native app using Expo (managed workflow), and I need to implement an emergency alert feature.
The requirement is:
When a push notification is received, a sound should play for around 30 seconds, even if the app is in the background or killed.
Currently, I am using expo-notifications and a custom notification sound. However, I noticed that:
The sound only plays for a few seconds (around 3–5 seconds)
It does not continue for the full duration of the audio file
Behavior varies across Android devices
What I want to know:
Is it possible to play a notification sound for ~30 seconds on Android using Expo (managed workflow)?
If not, what are the limitations imposed by Android or Expo?
Are there any workarounds to achieve a longer or continuous alert sound (for emergency use cases)?
Additional context:
App is built with Expo (managed, not ejected)
Target platform: Android (primary), iOS optional
Use case is similar to an emergency alert or alarm
Any guidance or recommended approach would be appreciated.
