pwa-builder / PWABuilder

The simplest way to create progressive web apps across platforms and devices. Start here. This repo is home to several projects in the PWABuilder family of tools.
https://docs.pwabuilder.com
Other
2.54k stars 273 forks source link

iOS WebBluetooth support #4079

Open andrewgoz opened 1 year ago

andrewgoz commented 1 year ago

Tell us about your feature idea

Implement support for PWAs utilizing WebBluetooth on iOS devices.

Do you have an implementation or a solution in mind?

WebBLE already implements a WebBluetooth polyfill (WBWebView) as a subclass of WKWebView, which leads me to hope it might be drop-in replacement for WKWebView.

The main issue is that the chooser UI for Bluetooth.requestDevice() is functional, but very basic.

Have you considered any alternatives?

I don't see any alternative other than Apple implementing native WebBluetooth support in WKWebView.

ghost commented 1 year ago

Thanks for submitting a new feature request! I've automatically added a vote 👍 reaction to help get things started. Other community members can vote to help us prioritize this feature in the future.

khmyznikov commented 1 year ago

Hey! Good idea. Feel free to contribute here https://github.com/pwa-builder/pwabuilder-ios and we can help to test it and add to pwabuilder. Sadly we don't have resources at this moment to actively develop ios-wrapper solution, it's on community driven rails rn.

andrewgoz commented 1 year ago

I expected this based on what I have read. I've discussed with my general manager and we intend to contract someone to do this and contribute whatever comes out of that. No timeframe as yet.

jgw96 commented 1 year ago

@andrewgoz this is awesome! Let us know if you have any updates around this (: