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

ios is unable to apply for microphone permission #460

Closed
COLOUREDGLAZES opened this issue Jan 13, 2025 · 6 comments
Closed

ios is unable to apply for microphone permission #460

COLOUREDGLAZES opened this issue Jan 13, 2025 · 6 comments

Comments

@COLOUREDGLAZES
Copy link

Hi, when I am using record in my flutter project, my ios device has been unable to apply for microphone permission, which is shown as being Permanently denied? How can I solve it? This is my flutter sdk and flutter record version.

Flutter 3.24.0 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 80c2e84975 (4 months ago) • 2024-07-30 23:06:49 +0700
Engine • revision b8800d88be
Tools • Dart 3.5.0 • DevTools 2.37.2

record: 4.4.4

ios:18.2.1

@llfbandit
Copy link
Owner

Version 4 is obsolete and no more maintained.
Did you follow setup steps?

@COLOUREDGLAZES
Copy link
Author

When I use version 5, there will be a sealed classes are not supported as program classes error on Android, so I have no choice but to use version 4. However, if you use version 4, you will be unable to apply for microphone permission on ios. How can I solve it?

  • What went wrong:
    Execution failed for task ':app:mergeLibDexDebug'.

Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
Failed to transform classes.jar (project :record_android) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, com.android.build.api.attributes.AgpVersionAttr=7.3.0, com.android.build.api.attributes.BuildTypeAttr=debug, com.android.build.gradle.internal.attributes.VariantAttr=debug, dexing-enable-desugaring=true, dexing-enable-jacoco-instrumentation=false, dexing-is-debuggable=true, dexing-min-sdk=23, org.gradle.category=library, org.gradle.jvm.environment=android, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime, org.jetbrains.kotlin.platform.type=androidJvm}.
> Execution failed for DexingWithClasspathTransform: D:\workspace\linyu_mobile\build\record_android\intermediates\runtime_library_classes_jar\debug\classes.jar.
> Error while dexing.

@llfbandit
Copy link
Owner

@COLOUREDGLAZES
Copy link
Author

Now I have updated flutter record to version 5.2.0 through your method, but the microphone permission will still be permanently denied when I install the packed ipa on my ios device.
image

@COLOUREDGLAZES
Copy link
Author

I used flutter permission_handler to apply for permission.
like:
image
Through the above code, it is judged that the microphone permission is always denied permanently in my iphone, which leads to the opening of the settings page, and there is no popup box for me to authorize the microphone permission. Excuse me, what is the reason? I have been thinking about this problem for two days, and there is really no way to ask you. Thank you!

@llfbandit
Copy link
Owner

In that case, follow permission_handler setup for iOS.
This issue iscompletely unrelated to this package.

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