cph-cachet / flutter-plugins

A collection of Flutter plugins developed by CACHET
551 stars 681 forks source link

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

Closed bps-takumaodaki closed 4 months ago

bps-takumaodaki commented 4 months ago

Fixes https://github.com/cph-cachet/flutter-plugins/issues/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.

(I accidentally deleted the repository, so I have recreated the PR.)

SlimShadyIAm commented 4 months ago

Thanks for your PR!