web_view_ble
为 WebView Flutter 添加蓝牙低功耗支持(适用于 Android 和 iOS)
在 WebView Flutter 中添加蓝牙低能耗支持
{"sdk":"flutter"}^6.0.0^0.11.0{"sdk":"flutter"}^2.0.0以下为英文项目原文快照,最新内容请访问 GitHub。
Flutter library To add Bluetooth Low Energy Support in WebView Flutter
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
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
The web_view_ble lib supports the following bluetooth Api's:
Thanks to WebBle for Ble javascript Polyfill, This project is licensed under the Apache Version 2.0 License as per the LICENSE file.
This is Just The Initial Version feel free to Contribute or Report any Bug!