Skip to content
This repository has been archived by the owner on Apr 13, 2021. It is now read-only.

Missing Fitness Access popup #54

Closed
troyzonzon opened this issue Jul 3, 2020 · 4 comments
Closed

Missing Fitness Access popup #54

troyzonzon opened this issue Jul 3, 2020 · 4 comments

Comments

@troyzonzon
Copy link

Hi I have used your widget in other apps, but this particular app using the newest widget is not popping up the authorization screen, I am only seeing the account selection.

@krokyze
Copy link
Owner

krokyze commented Jul 3, 2020

Hey @troyzonzon could you be more specific. Android or iOS? Which version?

@ltonn02
Copy link

ltonn02 commented Jul 4, 2020

Hi, I have the same problem with my app. I'm using the Android version. Every time I start the app the account selector pops up, when I click on my account nothing happens. When I try to read data using this:

final results = await FitKit.read(
DataType.DISTANCE,
dateFrom: DateTime.now().subtract(Duration(days: 5)),
dateTo: DateTime.now(),
);

I get this error:
PlatformException (PlatformException(FitKit, User denied permission access, null))

@krokyze
Copy link
Owner

krokyze commented Jul 4, 2020

@ltonn02 can you please verify this: #45 (comment)

@ltonn02
Copy link

ltonn02 commented Jul 6, 2020

@krokyze thanks for your advice, I think I fixed the issue. You need to add the release SHA-1 to the debug configuration as well.
My build.gradle now looks like this:

signingconfig

buildtypes

@krokyze krokyze closed this as completed Jul 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants