Viewing version 0.1.4+1. Open the latest package page.
permission_handler_html
0.1.4+1Permission plugin for Flutter. This plugin provides the web API to request and check permissions.
Readme
permission_handler_html
pub package Build status style: flutter lints
The official web implementation of the permission_handler plugin by Baseflow.
Usage
This is the officially endorsed web implementation of the permission_handler plugin. This means it will automatically be added to your dependencies when you depend on permission_handler in your applications pubspec.yaml.
More detailed instructions on using the API can be found in the README.md of the permission_handler package.
Issues
Please file any issues, bugs, or feature requests as an issue on our GitHub page. Commercial support is available, you can contact us at hello@baseflow.com.
Want to contribute
If you would like to contribute to the plugin (e.g. by improving the documentation, solving a bug, or adding a cool new feature), please carefully review our contribution guide and send us your pull request.
Author
This permission_handler plugin for Flutter is developed by Baseflow.
Changelog
0.1.4+1
- Replaces runtime-unsafe .isA<web.DOMException>() calls with Dart is web.DOMException checks to fix web release build failures.
0.1.4+0
- Adds support for the new Android 17 permission
ACCESS_LOCAL_NETWORK
0.1.3+5
- Updates the way how
window.navigator.mediaDevicesis accessed to keep supporting WASM.
0.1.3+4
- Fixes a bug causing the application to crash when running on HTTP protocol (not HTTPS or localhost) and the
window.navigator.mediaDevicesproperty isnull.
0.1.3+3
- Safari < 16 compatibility: Don't crash on missing
window.navigator.permissionsproperty
0.1.3+2
web: 1.0.0compatibility:PermissionDescriptorwas removed in web package.
0.1.3+1
- Fixes the PermissionDescriptor Error when getting the permission status.
0.1.3
- Adds support for
web: ^1.0.0
0.1.2
- Migrate to package:web and adding wasm support.
0.1.1
- Updates the dependency on
permission_handler_platform_interfaceto version 4.1.0 (SiriKit support is only available for iOS and macOS).
0.1.0+2
- Fixes plugin initialization for non-https web app.
- Fixes location permission name.
- Improves error handling in the example app.
0.1.0+1
- Updates
permission_handler_platform_interfacedependency to version^4.0.2.
0.1.0
- Adds an initial implementation of Web support for the permission_handler plugin with camera, notifications, and microphone permissions available.
Installing
export PUB_HOSTED_URL=https://pub.mirror.p-hatan.com
flutter pub add 'permission_handler_html:0.1.4+1'pubspec.yaml
name: permission_handler_html
description: Permission plugin for Flutter. This plugin provides the web API to request and check permissions.
version: 0.1.4+1
homepage: https://github.com/baseflow/flutter-permission-handler
environment:
sdk: ^3.5.0
flutter: ">=3.24.0"
resolution: workspace
dependencies:
flutter:
sdk: flutter
flutter_web_plugins:
sdk: flutter
permission_handler_platform_interface: ^4.1.0
web: ">=0.5.1 <2.0.0"
dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^5.0.0
mockito: ^5.4.2
build_runner: ^2.1.2
test: ^1.24.4
flutter:
plugin:
implements: permission_handler
platforms:
web:
pluginClass: WebPermissionHandler
fileName: permission_handler_html.dart
Version history
| Version | Published | Archive | SHA-256 |
|---|---|---|---|
| 0.1.0 | On demand | Download | 647b9c39…1d5163 |
| 0.1.0+1 | On demand | Download | d96ff56a…a24da8 |
| 0.1.0+2 | On demand | Download | 11b762a8…7864df |
| 0.1.1 | On demand | Download | 54bf176b…b6070d |
| 0.1.2 | On demand | Download | 6cac773d…44de24 |
| 0.1.3 | On demand | Download | 729b5a9f…9eb304 |
| 0.1.3+1 | On demand | Download | d220eb84…249546 |
| 0.1.3+2 | On demand | Download | af26edbb…c78851 |
| 0.1.3+4 | On demand | Download | 6b9cb54b…5532a9 |
| 0.1.3+5 | On demand | Download | 38f000e8…b4ff24 |
| 0.1.4+0 | On demand | Download | 6b740080…edce1b |
| 0.1.4+1 | Cached · Upstream SHA-256 matched | Download | 6ea98b3f…52f6ac |
Dependencies
flutter {
"sdk": "flutter"
}
flutter_web_plugins {
"sdk": "flutter"
}
permission_handler_platform_interface "^4.1.0"
web "\u003e=0.5.1 \u003c2.0.0"