capacitor-community / capacitor-community/speech-recognition

SpeechRecognition.checkPermissions() returns nil

Open
#121 0 comments 0 reactions 0 assignees View on GitHub
needs: triage
Dominant language
Java
Stars
130
Forks
69
PR merge metrics
No merged PRs in 30d

Description

Hello, I'm using the plugin and i have gone to the settings on my android device and enabled the app to let my app use the microphone but when my code executes await SpeechRecognition.checkPermissions(); it returns undefined not "denied" "granted" ect.

When I run the app on my device via android studio using the capacitor.config file as below;

{
"appId": "com.myappname.app",
"appName": "Jessica",
"webDir": "dist"
}

the domain the app uses is localhost and according to chatgpt this is why my anroid device wont allow the app to use the plugins because it doesnt like localhost as the domain.

Thus i decided to upload the app to google console text track and then download it to my android device but it still fails, only problem is I dont know how to log the errors and my console.log() to see where the errors are actually occuring.

I'm extremely stuck and need help as I cannot progress further.

Please someone help me out.

I can see that all the issues posted here are ignored but I'm desperate so I thought I'd give it a try.

Thanks

Contributor guide

Open the contributing guide

Research direction

Start by reproducing SpeechRecognition.checkPermissions() on the Android device using the shown capacitor.config, then use Android Studio to capture the missing logs and permission result. Done means identifying why the call returns undefined and confirming that it reports the expected permission state in both the local and Google Play test-track installations.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.