title: Fitbit API Integration using oAuth 2.0 with chrome custom tabs in android
body: <p>I am building an Android app which integrates Fitbit to get user's data.</p>
  
  <p>For integrating FitBit, I'm using Custom Chrome Tabs. When passing uri it redirects upto access page, But when I click on 'Allow', it displays error and not redirecting to the activity where I define intent filter.</p>
  
  <p>I am facing issue with redirect_uri. I don't have any server so i put redirect_uri as ******://logincallback</p>
  
  <pre><code>      &lt;activity android:name=".ChromeCustomTabActivity"&gt;
          &lt;action android:name="android.intent.action.VIEW" /&gt;
          &lt;category android:name="android.intent.category.DEFAULT" /&gt;
          &lt;category android:name="android.intent.category.BROWSABLE" /&gt;
  
          &lt;data
              android:host="logincallback"
              android:scheme="******" /&gt;
      &lt;/activity&gt;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/LaXii.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LaXii.jpg" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/DrQzV.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DrQzV.jpg" alt="enter image description here"></a></p>
  
  <p><strong>SOLVED</strong></p>
  
  <pre><code>&lt;activity android:name=".ChromeCustomTabActivity"&gt;
         &lt;intent-filter&gt;
          &lt;action android:name="android.intent.action.VIEW" /&gt;
           &lt;category android:name="android.intent.category.DEFAULT" /&gt;
           &lt;category android:name="android.intent.category.BROWSABLE" /&gt;
            &lt;data
              android:host="logincallback"
              android:scheme="******" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
  </code></pre>