Baseflow / Baseflow/flutter-permission-handler
[Bug]: MissingPluginException(No implementation found for method requestPermissions on channel flutter.baseflow.com/permissions/methods)
- Dominant language
- Dart
- Stars
- 2.2k
- Forks
- 970
- Avg merge
- 14h 22m
- Merged PRs (30d)
- 2
Description
### Please check the following before submitting a new issue.
- [x] I have searched the [existing issues](https://github.com/baseflow/flutter-permission-handler/issues).
- [x] I have carefully [read the documentation](https://github.com/Baseflow/flutter-permission-handler/blob/main/permission_handler/README.md) and verified I have added the required platform specific configuration.
### 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!
Contributor guide
Assessment
This issue has not been assessed yet.