cordova-plugin-speechrecognition icon indicating copy to clipboard operation
cordova-plugin-speechrecognition copied to clipboard

Bug: hasPermission() always results in success on iOS

Open leshik opened this issue 7 years ago • 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.

leshik avatar Oct 18 '18 09:10 leshik

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

leshik avatar Oct 20 '18 13:10 leshik