heart-rate-monitor
heart-rate-monitor copied to clipboard
Not working on ios 14, safari and chrome
Safari: It asks for perms to access the camera when I touch the circle, then have to touch it again and it opens a live broadcasting view with black bg no flash no camera. When I close it the chart is crazy 300-400 bpm and stops when the live broadcast is closed.
Chrome: nothing happens ever
Thanks for the report! I haven't been able to test it on an iPhone yet but I'll take a look. Regarding the wild BPM numbers, I will be improving that so that there's a limited range of values it considers valid (something like 27 - 220). I'll also make it show a moving average of BPM to give the reading a bit more stability.
I don't have an iPhone or a Mac so I'm not able to test this at the moment. If anyone can debug this or see if there are any errors in the browser console that would be very helpful!
In fact, the live broadcasting view shows the camera image and – at least on iOS 14.4.2 – disappears when you diminish it with a pinch gesture instead of closing it via the cross in the upper right corner. Everything seems to work perfectly. Thank you!