web_view_ble 0.1.0 copy "web_view_ble: ^0.1.0" to clipboard
web_view_ble: ^0.1.0 copied to clipboard

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

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!

2
likes
140
pub points
20%
popularity

Publisher

verified publisherrohitsangwan.in

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (license)

Dependencies

flutter, flutter_inappwebview, universal_ble

More

Packages that depend on web_view_ble