HeartRate-iOS-SDK
HeartRate-iOS-SDK copied to clipboard
Not working on iPhone X
I have tested your library on iPhoneX. It shows "waiting for bpm results" for a few seconds and than nothing happens. It must have something to do with the new camera.
Also, there is a bug with the flashlight. On iPhone X, 8 and 8s it must be activated after the capture session was started.
I solved this and have consistent results between old and new iPhones by...
- Changing line 322 in HeartRateKitController to
if (red < 100) { - Changing line 9 in HeartRateKitController to
#define kShouldAbortAfterSeconds 10
@mellinger maybe you can PR this and I will merge?