#Fitbit Authentication for android developement.
The above code lets you to authenticate user from mobile side and provide access to back end on user data resite on fitbit server. For Example: You can have users health data(step count, calories, distance, heart rate, etc), general information like Height, Weigh, gender etc.
Steps to follow
-
Register application on Fitbit dev portal
-
Provide all necessary information which requred and compulsary.
-
Copy 'Client Id', 'Client Secrete' and 'Redirect Url' and keep it in Constant File against respective variable
const val CLIENT_ID = "update client id from Fitbit Dev Portal"
const val CLIENT_SECRETE = "update client secrete from Fitbit Dev Portal"
const val FITBIT_REDIRECT_URL = "update redirect url from Fitbit Dev Portal"
All done. Run app and you are good to go.
Happy Coding :)