Several users have reported app crashes when requesting too much data from Health Connect, with the following error:
android.os.RemoteException: Request rejected. Rate limited request quota has been exceeded. Please wait until quota has replenished before making further requests.
Several users have reported app crashes when requesting too much data from Health Connect, with the following error:
Google provides several possible approaches in https://developer.android.com/health-and-fitness/guides/health-connect/plan/rate-limiting
However, as per #162, we should also handle this possible error in a better fashion rather than allowing the app to crash.