-
Notifications
You must be signed in to change notification settings - Fork 167
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
cant use startVideoRecording on Android 13 #303
Comments
@saadxprt Pls Check the below Link for Android 13 Permissions Changelogs and Select the Suitable Answer for your Problem |
i did try to incorporate the appropriate permissions as per many answers, didnt work for me |
Someone solved this ? |
Hi I think that I have the solution to this bug, basically the viro library internally is reviewing the permissions but on sdk above to 33 we need to ask for other permissions types, so, I fixed recently if you create your own react viro version and make a local installation After you clone the rect viro repository (https://github.com/viromedia/viro) you will need to add the follow lines inside the: android -> viro_bridge -> java -> src -> module -> ARSceneNavigatorModule.java search the line 331:
Basically that's the issue because it is reviewing internally the permissions before record I tested this and the recording it's working properly, I would help you. Would be great if some contributor could add this changes and thanks to @doranteseduardo he explain me how I can make my local viro version |
could you share us the full code file how to replace this,. because I'm not able to make it work, by using your instruction. |
Any fix for this in the lib please |
For android 14 or latter. You can just follow the @fernandoamz for the viro repo. Also, you need to fix the permission in the virocore repository. After you fix the permission issue, you need to rebuild the .aar file. Then you need to rebuild the package. If you just build the project for experimental you can just force the permission check to returning true. 😁 |
Thanks, I will check this |
@naufanituharish I can't build the local version after following the instructions on react vision documentation site |
Could you share the error message? |
Can you please share intructions here how to build this locally so I can use it with my project? Edit: I have forked the repo and made my changes but when i try to run this script
anyone knows a fix to this? |
Any one can tell how to install viro for local ( with changing some part of code as @saadxprt is doing ) step by step. Because the guide link in the repo are broken and instruction is not clear too. |
environment:
Windows
Android 13 actual device
@viro-community/react-viro": "^2.41.1", "react-native": "0.72.6",
Infinix Zero 30
it returns
{"errorCode": 1, "success": false, "url": null}
This is working fine with android 12 with these permissions
await request('android.permission.WRITE_EXTERNAL_STORAGE'); `
what do I need to do in order to make this _startVideoRecording work with Android 13? or just store the recording anywhere on the phone which I can access
The text was updated successfully, but these errors were encountered: