Skip to content
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

android 13+ can't record #98

Open
yeagle2468 opened this issue May 9, 2024 · 1 comment
Open

android 13+ can't record #98

yeagle2468 opened this issue May 9, 2024 · 1 comment

Comments

@yeagle2468
Copy link

"storage" permissions always returns "denied" on Android 13+, but the code in EdScreenRecorderPlugin.java below :

if (ContextCompat.checkSelfPermission(flutterPluginBinding.getApplicationContext(), Manifest.permission.WRITE_EXTERNAL_STORAGE)
!= PackageManager.PERMISSION_GRANTED) {

                    ActivityCompat.requestPermissions(activity,
                            new String[]{ Manifest.permission.WRITE_EXTERNAL_STORAGE},
                            444);
                } else {
                    mediaPermission = true;
                }
                if (micPermission && mediaPermission) {
                    success = startRecordingScreen();
                }

means mediaPermission is always false Android 13+

@Demirzekk
Copy link

How to resolve this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants