cph-cachet / flutter-plugins

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

[Health] add exception when reading data from HC #981

Closed thegamenicorus closed 4 months ago

thegamenicorus commented 5 months ago

Prevent plugin crashes (make the app crashes) when reading data from Health connect.

e.g.

android.os.RemoteException: com.softconstruct.vigohealth must be in foreground to read the following data types [Steps, StepsCadenceSeries]

or

java.lang.SecurityException: com.example must be in foreground to call aggregate method
SlimShadyIAm commented 4 months ago

Thanks for your PR!