title: Cannot get redirected back to App from Angel.co API call in Android App
body: <p>I have an app that authenticates a user through the following call:</p>
  
  <pre><code>https://angel.co/api/oauth/authorize?
  client_id=...&amp;
  state=...&amp;
  response_type=code
  </code></pre>
  
  <p>I have setup the following code to authenticate and then grab the code for the AccessToken:</p>
  
  <pre><code>mLoginButton.setOnClickListener(new View.OnClickListener() {
          @Override
          public void onClick(View v) {
              Intent intent = new Intent(
                      Intent.ACTION_VIEW,
                      Uri.parse("https://angel.co/api/oauth/authorize?"
                                + "client_id=" + clientId + "&amp;"
                                + "response_type=" + RESPONSE_TYPE)
              );
              intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);
              startActivity(intent);
          }
      });
  </code></pre>
  
  <p>This is my manifest:</p>
  
  <pre><code>&lt;activity android:name=".ui.UserLoginActivity"
          android:label="@string/app_name"
          android:launchMode="singleTask"
          android:exported="true"
          android:screenOrientation="portrait"&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="myapp"
                  android:scheme="dezign.scheme" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
  </code></pre>
  
  <p>It launches to Chrome browser fine from the app when I click the <code>mLoginButton</code> however when it is done and hits the <code>redirectUri</code> it shows the following error and does go back to the app:</p>
  
  <p><img src="https://i.stack.imgur.com/ZLQ1I.png" alt="enter image description here"></p>
  
  <p>What am I doing wrong here? So far I haven't found an acceptable answer on SO.</p>
  
  <p><strong>UPDATE SEEMED TO HAVE SOLVED THE ISSUE</strong></p>