Viewing version 0.1.4+1. Open the latest package page.

permission_handler_html

0.1.4+1

Permission plugin for Flutter. This plugin provides the web API to request and check permissions.

Download archive

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.mediaDevices is 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.mediaDevices property is null.

0.1.3+3

  • Safari < 16 compatibility: Don't crash on missing window.navigator.permissions property

0.1.3+2

  • web: 1.0.0 compatibility: PermissionDescriptor was 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_interface to 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_interface dependency 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

VersionPublishedArchiveSHA-256
0.1.0On demandDownload647b9c39…1d5163
0.1.0+1On demandDownloadd96ff56a…a24da8
0.1.0+2On demandDownload11b762a8…7864df
0.1.1On demandDownload54bf176b…b6070d
0.1.2On demandDownload6cac773d…44de24
0.1.3On demandDownload729b5a9f…9eb304
0.1.3+1On demandDownloadd220eb84…249546
0.1.3+2On demandDownloadaf26edbb…c78851
0.1.3+4On demandDownload6b9cb54b…5532a9
0.1.3+5On demandDownload38f000e8…b4ff24
0.1.4+0On demandDownload6b740080…edce1b
0.1.4+1Cached · Upstream SHA-256 matchedDownload6ea98b3f…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"