diff --git a/MoCha/Assets/Scenes/Main.unity b/MoCha/Assets/Scenes/Main.unity index 1cef1c2..a35ec1e 100644 Binary files a/MoCha/Assets/Scenes/Main.unity and b/MoCha/Assets/Scenes/Main.unity differ diff --git a/MoCha/Assets/Scripts/FitBitAPI.cs b/MoCha/Assets/Scripts/FitBitAPI.cs index 4dfdbca..476f977 100644 --- a/MoCha/Assets/Scripts/FitBitAPI.cs +++ b/MoCha/Assets/Scripts/FitBitAPI.cs @@ -22,7 +22,7 @@ namespace Assets.Scripts.Fitbit //if you don't know how to do the callback through a native browser on a mobile device //http://technicalartistry.blogspot.ca/2016/01/fitbit-unity-oauth-2-and-native.html //can probably help :) - private const string CustomAndroidScheme = "mochaapp://TheCallback"; + private const string CustomAndroidScheme = "mocha://"; private const string _tokenUrl = "https://api.fitbit.com/oauth2/token"; private const string _baseGetUrl = "https://api.fitbit.com/1/user/-/"; @@ -107,7 +107,7 @@ namespace Assets.Scripts.Fitbit { //we don't have a refresh token so we gotta go through the whole auth process. var url = - "https://www.fitbit.com/oauth2/authorize?response_type=code&client_id=" + _clientId + "&redirect_uri=" + + "https://www.fitbit.com/oauth2/authorize?response_type=code&client_id=" + _clientId + "&prompt=login&redirect_uri=" + CallBackUrl + "&scope=activity%20nutrition%20heartrate%20location%20profile%20sleep%20weight%20social"; Application.OpenURL(url); diff --git a/MoCha/ProjectSettings/ProjectSettings.asset b/MoCha/ProjectSettings/ProjectSettings.asset index d8a42fd..78e4db1 100644 Binary files a/MoCha/ProjectSettings/ProjectSettings.asset and b/MoCha/ProjectSettings/ProjectSettings.asset differ