kvs-coder / health_kit_reporter

A Flutter wrapper for the HealthKitReporter library
https://pub.dev/packages/health_kit_reporter
MIT License
36 stars 33 forks source link

`isAuthorizedToWrite` implementation not found on iPad #36

Closed pierrea closed 2 years ago

pierrea commented 2 years ago

I'm getting Crashlytics reports stating that no implementation is found for isAuthorizedToWrite on the channel. It turns out all 3 occurrences are on iPads so I'm assuming it's an issue with iPad compatibility.

In the meantime I'm going to detect the device in my code to circumvent the crash when it's an iPad.

Screen Shot 2022-03-09 at 1 09 50 PM
kvs-coder commented 2 years ago

Hello @pierrea

Please check if it is actually possible even to have Apple Health app on iPad. According to the App's description iPads do not support Apple Health

Bildschirmfoto 2022-03-09 um 15 57 08

pierrea commented 2 years ago

You're totally right! I will make sure to avoid using the plugin if the device is an iPad. In the future, maybe the plugin could detect device compatibility and provide more convenience. Feel free to close this issue though, thank you!