ak1394 / react-native-tts

React Native Text-To-Speech library for Android and iOS
602 stars 154 forks source link

Opens Google text to speech on play store, even when it's already installed #158

Closed SergiOnGit closed 2 years ago

SergiOnGit commented 3 years ago

Hello,

On some android devices it opens google text to speech on play store and asks to install even it is installed. It does this everytime on those devices. Can anyone help? Android version doesn't matter, users caught it on android 8,9,10 and even 11.

yoursinger commented 2 years ago

I met the same problem.When I use android devices.And When I use the simulator,it's not.Android 11,MIUI 12.5

yoursinger commented 2 years ago

I searched for a solution. Just add some codes in the AndroidManifest.xml file:

<queries>
    <intent>
       <action android:name="android.intent.action.TTS_SERVICE" />
    </intent>
</queries>

For me,it's useful. This seems to only happen on Android 11. https://developer.android.google.cn/reference/android/speech/tts/TextToSpeech

SergiOnGit commented 2 years ago

@yoursinger Thank you. Would be great if plugin author implements it or mention in installation steps. @ak1394