When speech recognition permissions are granted but microphone permissions are denied, the SpeechToText.initialize method returns true.
This behavior is unexpected because SpeechToText can not be used without both permissions.
Steps
- Launch the app.
- Call the
SpeechToText.initialize for the first time.
- Grant speech recognition permission.
- Deny microphone permission.
SpeechToText.initialize returns false. (expected)
- Close the app.
- Relaunch the app.
- Call the
SpeechToText.initialize.
SpeechToText.initialize returns true. (unexpected)
-
Environment
- Platform: iOS 18
- Package: speech_to_text 7.3.0