pbakondy/cordova-plugin-speechrecognition

Bug: hasPermission() always results in success on iOS

Opened this issue · 1 comments

When on iOS, hasPermission() always returns success, even if a user has denied the request to the speech recognition before. I think the cause is this line: https://github.com/pbakondy/cordova-plugin-speechrecognition/blob/master/src/ios/SpeechRecognition.m#L189

Not sure how this should be fixed – hasPermission and requestPermission share most of the code, maybe this should go in a separate function.

Turned out Android suffers from same issues. I added another PR #91 to fix them.