GoogleChrome / samples

A repo containing samples tied to new functionality in each release of Google Chrome.
https://www.chromestatus.com/samples
Apache License 2.0
5.77k stars 2.39k forks source link

Question: Does the web bluetooth sample work on chrome android? #783

Closed kpjf closed 1 year ago

kpjf commented 1 year ago

Forgive me if it's been asked and answered, but I can't seem to get it working... heart_rate/heart_rate_measurement...

It'll connect to the device, but the characteristic.startNotifications() promise never resolves. Seems like the support should be there, am I missing a flag, or permission setting?

beaufortfrancois commented 1 year ago

Hello @kpjf!

kpjf commented 1 year ago

The demo, specifically this demo, will work on desktop (Chrome 107) but fails on my android device (Pixel 7 Pro, Chrome 108)

I'm connecting to a Whoop strap.

I'll try and get the logs from the phone.

Thank you for the reply... first time playing with the bluetooth API.

kpjf commented 1 year ago

Digging into the bluetooth-internals to see if there's a difference in the characteristic properties desktop to phone.

On my desktop the characteristic has the read properties, but on my phone, it's only got notify. So there's that.

beaufortfrancois commented 1 year ago

Good to hear!