krokyze / FitKit

Flutter plugin for reading health and fitness data. Wraps HealthKit on iOS and GoogleFit on Android.
BSD 2-Clause "Simplified" License
98 stars 72 forks source link

Users are able to get past the google read activity prompt #31

Closed SheriefAlaa closed 4 years ago

SheriefAlaa commented 4 years ago

Hi @krokyze,

I use in my app FitKit.requestPermissions([DataType.DISTANCE]) but if a user taps outside of the google prompt, I can never trigger it back and sometimes I get: PlatformException(FitKit, 4: The user must be signed in to make this API call., null)

Is there any way I can re-trigger the google prompt?

Thanks.

krokyze commented 4 years ago

Hey @SheriefAlaa

Tried to reproduce this in example app but unsuccessfully. Can you please share your code here?