-
Notifications
You must be signed in to change notification settings - Fork 495
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Voice.isAvailable() returns false on Android 11 - fix for Expo plugin. #350
Comments
I have tested this, works well! |
Hi all, What is the ETA to get this into release? Right now, with expo config plugins, the fix is not working with latest release. -thanks, DP |
Hi all I'm facing the below issue while running the code. I just upgrade to android 11. Is the anything I missed, please help if any finding Error: unexpected element queries found in manifest application android/build.gradle
Added below code in the AndroidManifest.xml file
gradle-wrapper.properties
|
hey did you ever get a fix? still not working for me |
vivekvrao, I've managed to get some working code for the expo plugin. I've made a PR here. I have an NPM package you can use to test in the interim: @nonsenselearning/voice. Hope this helps! |
How did you get it to work? |
I made a PR above #396. Until that gets accepted, you can use my fork. This is what I put in my package.json:
and then when you import:
|
I'm running on all latest versions of everything (literally started playing around with this today) and it still doesn't work. I also added the following to my local config (because I found them here and in other places)
with no result. I even followed this to request for permissions in an expo-friendly way (https://docs.expo.dev/versions/v46.0.0/sdk/audio/), but also - with no result. and my services list is still empty (it's a Promise these days btw) |
For react native cli add this in manifest last step |
Hello Expo users, I wanted to share some updates regarding the config plugin by @tslater. I've made some enhancements, and thanks to the comment from @cdcHub, I've added additional values into the config plugin.
You can add that custom plugin directly into app.json's plugin array
|
Voice.isAvailable() returns empty list on Android 11 . Seems to be because of package visibility changes as discussed in #304
and can be fixed by making the addition to manifest below.
As of Expo build 42 - it is possible to use react-native-voice in Expo with custom Eas builds. But that doesn't allow for adding queries to the manifest. Can this be added in the expo plugin of the library?
I looked at - https://github.com/react-native-voice/voice/blob/master/plugin/src/withVoice.ts -but is not obvious how to do this.
https://developer.android.com/about/versions/11/privacy/package-visibility
Due to Android 11 change, you have to add below code in your manifest xml file.
Originally posted by @boolgom in #304 (comment)
The text was updated successfully, but these errors were encountered: