cph-cachet / flutter-plugins

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

[Health] Avoid Health connect read data in background crash #977

Closed thegamenicorus closed 5 months ago

thegamenicorus commented 5 months ago

Added the logic that skips reading data from Health Connect in the background (see reading limitation) and preventing the app from crashing with error:

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