Skip to content

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

@TheArchitect123

Description

@TheArchitect123

Please check the following before submitting a new issue.

Please select affected platform(s)

  • 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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions