• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

API Redirect_Url

Hello, I have an issue with the redirect_url in the OAuth2 Process with the FitBit API..

User is directed to the Authorization Page in Chrome Custom Tabs (recommended). When clicked "agree", user is not redirected back to application or I get an error message.

I find the documentation on the FitBit website very unclear..



I have already set callback_uri in many different ways, with different outcomes:


Local Page with Auth Code, no redirect because not specified:


- http://locallhost.com/


Error Not Found:

- http://locallhost.com/callback

- http://locallhost.com/redirect


Oops it it not you, it is us..

- https://www.fitbit.com
- https://www.linkedin.com


Setting in the Application Page are correct.

Settings in the Manifest are the following, adapted per redirect..

<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
<data android:host="www.locallhost.com/redirect"
android:scheme="http"/>
</intent-filter>


My Questions:

- What are the rules and expectancies regarding redirect_url in general, and for the FitBit API in particular?
- How can I set a working redirect_url for testing purposes on local machine?
- How can I set a working redirect_url in production before buying a domain name?
 
Hello, I have an issue with the redirect_url in the OAuth2 Process with the FitBit API..

User is directed to the Authorization Page in Chrome Custom Tabs (recommended). When clicked "agree", user is not redirected back to application or I get an error message.

I find the documentation on the FitBit website very unclear..



I have already set callback_uri in many different ways, with different outcomes:


Local Page with Auth Code, no redirect because not specified:


- http://locallhost.com/


Error Not Found:

- http://locallhost.com/callback

- http://locallhost.com/redirect


Oops it it not you, it is us..

- https://www.fitbit.com
- https://www.linkedin.com


Setting in the Application Page are correct.

Settings in the Manifest are the following, adapted per redirect..

<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
<data android:host="www.locallhost.com/redirect"
android:scheme="http"/>
</intent-filter>


My Questions:

- What are the rules and expectancies regarding redirect_url in general, and for the FitBit API in particular?
- How can I set a working redirect_url for testing purposes on local machine?
- How can I set a working redirect_url in production before buying a domain name?

Did you find the answer for this?
 
Back
Top Bottom