flutter-permission-handler icon indicating copy to clipboard operation
flutter-permission-handler copied to clipboard

[Bug]: MissingPluginException(No implementation found for method requestPermissions on channel flutter.baseflow.com/permissions/methods)

Open TheArchitect123 opened this issue 4 months ago • 2 comments

Please check the following before submitting a new issue.

Please select affected platform(s)

  • [x] Android
  • [ ] iOS
  • [ ] Windows

Steps to reproduce

Invoke Permission.camera.request()

Expected results

That I can successfully invoke the permission request

Actual results

E/flutter ( 5178): E/flutter ( 5178): [ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: MissingPluginException(No implementation found for method requestPermissions on channel flutter.baseflow.com/permissions/methods) E/flutter ( 5178): #0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:365:7) E/flutter ( 5178): E/flutter ( 5178): #1 MethodChannelPermissionHandler.requestPermissions (package:permission_handler_platform_interface/src/method_channel/method_channel_permission_handler.dart:80:9) E/flutter ( 5178): E/flutter ( 5178): #2 PermissionActions.request (package:permission_handler/permission_handler.dart:109:10) E/flutter ( 5178):

Code sample

Here's my widget (this is inside my Build method). It's scoped just to the relevant sections.

  return Scaffold(
            floatingActionButton: FloatingActionButton(
              onPressed: () async {
                final status = await Permission.camera.request();
                if (!status.isGranted) {
                  throw Exception('Camera permission denied');
                }
              },
            ),
            body: Center(
              child: Padding(
                padding: const EdgeInsets.all(24),
                child: Text(
                  "Camera init failed",
                  textAlign: TextAlign.center,
                ),
              ),
            ),
          );
        }

Screenshots or video

Screenshots or video demonstration

[Upload media here]

Version

12.0.1

Flutter Doctor output

[✓] Flutter (Channel stable, 3.35.3, on macOS 26.0 25A354 darwin-arm64) [✓] Android toolchain - develop for Android devices (Android SDK version 36.0.0-rc5) [✓] Xcode - develop for iOS and macOS (Xcode 16.4) [✓] Chrome - develop for the web [✓] Android Studio (version 2024.3) [✓] VS Code (version 1.104.1) [✓] Connected device (3 available) [✓] Network resources

• No issues found!

TheArchitect123 avatar Sep 25 '25 11:09 TheArchitect123

+1 I am facing the same issue when I tried it on a Android API 36 emulator (target sdk version of my app) Works fine on android api level 24 (lowest sdk version supported by my app)

MayurPoptani avatar Sep 25 '25 13:09 MayurPoptani

+1 same issue

Hi, @mvanbeusekom

What are your thought on that ?

Our production app is stuck on splash screen with this exception, only on release mode. Debug Mode is OK.

-> compileSdk 36

Thanks in advance

arioul89 avatar Oct 04 '25 16:10 arioul89