Giter Site home page Giter Site logo

Comments (6)

HarisSpahija avatar HarisSpahija commented on July 18, 2024 1

This was a bit how my process went trying to test the example app

1. I cloned the example folder
2. Flutter run gave me an error that fit_kit was undefined
3. Changed fit_kit in pubspec.yaml
4. Received no data in the example app
5. Had to create a google oAuth2 token
6. Add items to gradle according to the Google Fit instructions
7. Rebuild the app
8. Finally got the app to work

I think having a simple instructions guide or warning with:

You need to get a oauth2 key before you can run this app. 
Clone the entire project for running the example app etc. 

Having this would already be super helpful for new users for this library.

from fitkit.

L3thal14 avatar L3thal14 commented on July 18, 2024 1

@jaydeep42 Just add google-services.json with oauth2 ID generated and in build.gradle under dependencies add these 2:
compile 'com.google.android.gms:play-services-fitness:18.0.0'
compile 'com.google.android.gms:play-services-auth:17.0.0'
Happy Fluttering! :))

from fitkit.

krokyze avatar krokyze commented on July 18, 2024

Hey @HarisSpahija

Could you please name all the issues you had trouble with? Submitting step by step in a PR would definitely help me.

About the dependency then it's correct. You should clone the whole project.

from fitkit.

jaydeep42 avatar jaydeep42 commented on July 18, 2024

@HarisSpahija what items you added in gradle?
Because I am still getting 0 in all the data

from fitkit.

gokulp01 avatar gokulp01 commented on July 18, 2024

@L3thal14 thanks. That worked :)

from fitkit.

HarisSpahija avatar HarisSpahija commented on July 18, 2024

I think this issue can be closed with the comments from @L3thal14

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.