react-native-tts icon indicating copy to clipboard operation
react-native-tts copied to clipboard

Audio continues after app is manually closed

Open vtisnado opened this issue 8 years ago • 2 comments

Hi @ak1394 thanks for the great job with this library, I'am testing it and I can automatically stop the audio if the user leave the current View with componentWillUnmount as you can check here:

componentWillUnmount(){
    Tts.stop();
  }

However, if the user switch to another app or force to close the app, the sounds continue until the entire text is completely readed. Is there any option to avoid this behavior?

vtisnado avatar May 31 '17 15:05 vtisnado

Does anyone have this issue as well? This is happening on a Huawei P8 plus. I'm looking for a solution to add this library to my project.

vtisnado avatar Aug 29 '17 16:08 vtisnado

Hi @vtisnado , did you try to stop the TTS in the AppState events https://facebook.github.io/react-native/docs/appstate.html ?

Buthrakaur avatar Feb 20 '18 14:02 Buthrakaur