Skip to content

SpeechRecognition.checkPermissions() returns nil #121

@scottywm

Description

@scottywm

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions