Re: [web-bluetooth] startNotifications sometimes doesn't bind (#429)

It is safe to add the event listener before receiving the first value. You don't even need to call `startNotifications()` first. It just won't be called until the browser receives a new characteristic value.

Are you sure that the promise returned by `startNotifications()` is resolving? Adding a log statement to the beginning of `handleHeartRateMeasurement()` should answer this question.

-- 
GitHub Notification of comment by reillyeon
Please view or discuss this issue at https://github.com/WebBluetoothCG/web-bluetooth/issues/429#issuecomment-476399021 using your GitHub account

Received on Monday, 25 March 2019 22:17:49 UTC