flutter-plugins icon indicating copy to clipboard operation
flutter-plugins copied to clipboard

[3.0.x] health - Log out or disconnect account

Open edumolins opened this issue 4 years ago • 12 comments

Health Package

I have not found a way to log out a user's account once it has been authorized. It would be nice to have a logout method to be able to choose another user account to retrieving data.

edumolins avatar Jun 18 '21 07:06 edumolins

We actually already implemented this and can probably send it back.

allenwyma avatar Jun 24 '21 08:06 allenwyma

Please make a PR if so?

bardram avatar Jun 28 '21 09:06 bardram

We actually already implemented this and can probably send it back.

Any Updates?

EunyoungY avatar Oct 25 '21 04:10 EunyoungY

sorry, been crazy swamped, I totally forgot about this. i think you can check out #436

allenwyma avatar Oct 25 '21 05:10 allenwyma

Hi, we really need the log out option, it's a must for data protection regulation...

mikidimitrovski avatar Nov 11 '21 12:11 mikidimitrovski

Hi, any news on this topic?!

zlated avatar Nov 11 '21 12:11 zlated

Any updates on the log-out option for Android and IOS?

chukovskid avatar Nov 12 '21 12:11 chukovskid

My PR has this function.

allenwyma avatar Nov 12 '21 12:11 allenwyma

Hello @HangingClowns, nice work with #436!

Would it be possible for you to go over the merge conflicts, in the coming weeks?

Let me know how can I help. Thanx!

igorstama avatar Nov 16 '21 09:11 igorstama

Any updates on logout or disconnect from googlefit ??

dipinsankar1 avatar Jan 18 '22 07:01 dipinsankar1

Any updates on logout or disconnect from googlefit or health app ??

sunilkumawatandroid avatar May 11 '22 07:05 sunilkumawatandroid

We solved it with google_sign_in plugin for flutter. This plugin allows us to SignIn Silently, and SignOut from google, all we needed was the token. So we used the REST flow to get the steps from googleFit witht the bearer token.

This is the scopes we used: static String googleFirUrl = "https://www.googleapis.com/fitness/v1/users/me/dataset:aggregate";

static GoogleSignIn _googleSignIn = GoogleSignIn( scopes: <String>[ 'email', 'https://www.googleapis.com/auth/fitness.activity.read', ], );

chukovskid avatar May 11 '22 10:05 chukovskid