flutter_tts icon indicating copy to clipboard operation
flutter_tts copied to clipboard

App crashes at web android

Open otopba opened this issue 4 years ago • 3 comments

🐛 Bug Report

App crashes on start at web android

This feature is not supported at WebView Android https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance#browser_compatibility. App crashes when dart try to access html.SpeechSynthesisUtterance. Maybe we should add an operating system check or at least try-catch?

Screenshot 2021-11-03 at 15 38 05

Expected behavior

App not crashes

Reproduction steps

Add library to your project and run at WebView Android

Configuration

Version: 3.2.2

Platform:

  • [X] :robot: Android

otopba avatar Nov 04 '21 11:11 otopba

good idea @otopba, I'll see if there is a way to put that around a try/catch

dlutton avatar Nov 07 '21 23:11 dlutton

@otopba @dlutton i was also into the similar situation , so created a package for this https://pub.dev/packages/web_view_tts hope this will be helpful for someone

rohitsangwan01 avatar Aug 26 '22 10:08 rohitsangwan01

@otopba @dlutton i was also into the similar situation , so created a package for this https://pub.dev/packages/web_view_tts hope this will be helpful for someone

Cool! Thanks

otopba avatar Aug 26 '22 11:08 otopba