Giter Site home page Giter Site logo

How to use this plugin. about fitkit HOT 12 CLOSED

krokyze avatar krokyze commented on July 18, 2024
How to use this plugin.

from fitkit.

Comments (12)

ryanhz avatar ryanhz commented on July 18, 2024 3

I really don't know how to make it work in android. I do enable the Fitness API and also obtain an OAuth 2.0 client ID. But the ID is nowhere to use. There is a prompt for which Google account to use, but then just silent disappear, then no error, await FitKit.requestPermissions(DataType.values) just return false.

from fitkit.

krokyze avatar krokyze commented on July 18, 2024

Hey.

Could it be possible that you pressed "deny" the first time. I experienced this issue but haven't got time to search for solution. If user denies the permissions then GoogleSignIn.hasPermissions still returns true.

from fitkit.

sai7 avatar sai7 commented on July 18, 2024

No, @krokyze .

From the initial launch of the app, I am getting the same scenario. Even on other Android devices also, the same situation.:)

from fitkit.

anilslabs avatar anilslabs commented on July 18, 2024

@sai7 You have to Enable Fitness API and obtain an OAuth 2.0 client ID first with the same package id you are using in your app.

from fitkit.

krokyze avatar krokyze commented on July 18, 2024

Yes as already @anil-sookshum answered, @sai7 did you completed this part https://developers.google.com/fit/android/get-api-key ?

from fitkit.

sai7 avatar sai7 commented on July 18, 2024

Yes , @krokyze. I have enabled google fit api for the same project.

But as @anil-sookshum mentioned, do I need to use the oauth 2.0 client ID in the app? That is not needed right? I have enabled the google fit api in the app using the same package id. Let me check once again and get back to you,

Thanks much m.

from fitkit.

anilslabs avatar anilslabs commented on July 18, 2024

@sai7 have you added these dependencies in app level gradle file
dependencies {
......
compile 'com.google.android.gms:play-services-fitness:16.0.1'
compile 'com.google.android.gms:play-services-auth:16.0.1'
}

For me it is working fine with above steps. Also check by logging in to with the same google account you are using for OAuth client id.

from fitkit.

krokyze avatar krokyze commented on July 18, 2024

@sai7 have you added these dependencies in app level gradle file
dependencies {
......
compile 'com.google.android.gms:play-services-fitness:16.0.1'
compile 'com.google.android.gms:play-services-auth:16.0.1'
}

For me it is working fine with above steps. Also check by logging in to with the same google account you are using for OAuth client id.

Those dependencies are already in the Android part of the package so you don't have to add them on your project.

from fitkit.

krokyze avatar krokyze commented on July 18, 2024

@sai7 Yes you have to enable the Google Fit API and add your package id, that's it. The client id in app is not needed.

from fitkit.

FatCat1411 avatar FatCat1411 commented on July 18, 2024

Hello, first of thank you for this package,
I have some issue as people above, enabled Google Fit API and add package id, and I have success log in my google account, but the data return is empty.
I can see datatype in logcat, such as heart_rate or step_count, but the data is empty. I have make sure that I have data on Google Fit using android app with the same name.
Thank you very much.
Ps: I have check my traffic on https://console.cloud.google.com/ and there wasn't any traffic.

from fitkit.

krokyze avatar krokyze commented on July 18, 2024

If anyone still is having problems please open new issue.

from fitkit.

Harshdeep4295 avatar Harshdeep4295 commented on July 18, 2024

@here I was facing the same issue... I just verified the package which I was using in flutter and the one which Is registered on google console. Both should be same

from fitkit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.