Search packages, repositories and app categories

Package detailsv0.1.0

web_view_ble

Add Bluetooth Low Energy Support in WebView Flutter for Android and iOS

AndroidiOS
30-day downloads
23
Likes
2
Pub points
130

Install package

flutter pub add web_view_ble

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

web_view_ble is a Flutter package that enables Bluetooth Low Energy (BLE) functionality within web views on Android and iOS. It bridges the gap between native BLE capabilities and web content rendered in a WebView, allowing web-based applications to interact with BLE devices. This integration is particularly useful for IoT applications where web interfaces need to communicate with BLE peripherals. The package provides a seamless way to access BLE features without requiring full native app development. It supports both major mobile platforms and is designed to work directly with existing web content.

Use cases

  • IoT device control via web interface
  • BLE-enabled web apps on mobile
  • Real-time sensor data monitoring
  • Web-based medical device interfaces
  • Remote configuration of BLE peripherals

Key features

  • BLE integration in WebView
  • Cross-platform support (Android & iOS)
  • Native BLE access from web content
  • Simple Flutter plugin setup
  • Secure communication with BLE devices

Suitable for

  • Developers building IoT web apps
  • Teams using web views for BLE interactions
  • Mobile apps requiring BLE with web UI
  • Prototyping BLE web interfaces
  • Hybrid app developers needing BLE support

Considerations

  • Requires platform-specific permissions
  • Limited to BLE-only functionality
  • May require additional web code for full BLE control
  • Not suitable for complex BLE operations
  • Depends on correct WebView configuration

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

WebView Ble

web_view_ble version

Flutter library To add Bluetooth Low Energy Support in WebView Flutter

Getting Started

Using flutter_inappwebview for WebView, Make sure to Check their docs for setting up WebView

And universal_ble for bluetooth, check docs for platform specific setup

Usage

Make sure to ask bluetooth permission first, check universal_ble for more details

In your onLoadStop callback of flutter_inappwebview , add this method

WebViewBle.setup(controller: controller, context: context);

Dispose when not needed anymore

WebViewBle.dispose();

Checkout /example for more details

Features

The web_view_ble lib supports the following bluetooth Api's:

  • Request Device (Filters : ServiceId , name , namePrefix, manufacturerData)
  • Connect
  • Disconnect
  • Discover services
  • Discover characteristics
  • Read/Write
  • Subscribe/Unsubscribe
  • GetAvailability / AvailabilityChanged events

Attribution

Thanks to WebBle for Ble javascript Polyfill, This project is licensed under the Apache Version 2.0 License as per the LICENSE file.

Additional information

This is Just The Initial Version feel free to Contribute or Report any Bug!

Categories

Dependencies

Dependency list 2 items

Source repository

Projects using this package

No data available yet.