I am creating a react native app, which is mainly for drivers, it has this feature to notify the driver with voice commands while riding, as the driver is riding it will be difficult for him to read test notification. So am new to mobile app development and need a solution to audio when pushing notification from fire base server.
I was planning to push plain text and convert it to audio using the TTS library, i was able to do this but when the app is inactive it doesn't work.
I need a solution that should work in both ios/android which can either play an audio file or utilize TTS to convey the message to user when the phone is locked, app is running in the background. great if you can do it even when the app is not running in background.