cph-cachet / flutter-plugins

A collection of Flutter plugins developed by CACHET
527 stars 625 forks source link

[Health] Do not invoke method channel API when useHealthConnectIfAvailable is true on iOS #990

Open bps-takumaodaki opened 6 days ago

bps-takumaodaki commented 6 days ago

Fixes #989.

According to the configure documentation:

If useHealthConnectIfAvailable is true, Google Health Connect on Android will be used. Has no effect on iOS.

However, setting useHealthConnectIfAvailable to true on iOS triggers calls to an unimplemented method Channel API.

To address this issue, I confirmed that no method Channel API is invoked when useHealthConnectIfAvailable is set to true and configure is called on iOS, thereby ensuring that the issue no longer occurs.