Request and check app permissions in Flutter
open sourceMITfree
permission_handler is a Flutter plugin that requests runtime permissions (camera, location, contacts, notifications and the rest) and checks their status through one API across Android, iOS, the web and Windows. It can open the device's app settings so a user can grant a permission they denied, and on Android it can tell you when to show a rationale first. Each platform has its own implementation package, picked automatically, and it is made by Baseflow.
Problems it solves
- ask the user for camera or location permission in my Flutter app
- check whether my Flutter app was granted a permission and send the user to settings if not
- handle Android and iOS runtime permissions with one Dart API
Features
- request and check runtime permissions with one API
- open the app settings page
- Android permission rationale check
- Android, iOS, web and Windows implementations
Alternatives
The same job
These do what permission_handler does.
- local_auth Flutter plugin for local authentication with biometrics, passcode, PIN or pattern
- flutter_local_notifications Cross-platform Flutter plugin for displaying and scheduling local notifications
- Location (Flutter) Real-time device location for Flutter on every platform
- Flutter Packages Flutter's first-party packages and plugins, maintained by the Flutter team
