React native OAuth2 redirect_uri: Invalid scheme
<p>recently I've been learning about react native and I encountered a so farm unsolvable problem.
I'm trying to authenticate using gmail OAuth2 from my app, as a redirect parameter I put myscheme://oauth the whole url looks like this:</p>

<p><a href="https://accounts.google.com/o/oauth2/v2/auth?response_type=token&amp;client_id=XXXXXXXX&amp;redirect_uri=myscheme://oauth&amp;scope=https://www.googleapis.com/auth/spreadsheets" rel="nofollow">https://accounts.google.com/o/oauth2/v2/auth?response_type=token&amp;client_id=XXXXXXXX&amp;redirect_uri=myscheme://oauth&amp;scope=https://www.googleapis.com/auth/spreadsheets</a></p>

<p>I registered an intent-filter in my manifest.xml which looks like this:</p>

<pre><code>&lt;activity
    android:name=".MainActivity"
    android:label="@string/app_name"
    android:launchMode="singleTask"
    android:configChanges="keyboard|keyboardHidden|orientation|screenSize"&gt;
        &lt;intent-filter&gt;
            &lt;action android:name="android.intent.action.MAIN" /&gt;
            &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
        &lt;/intent-filter&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:scheme="myscheme" android:host="oauth"/&gt;
        &lt;/intent-filter&gt;
      &lt;/activity&gt;
</code></pre>

<p>I am using react native Linking to open the URL and the error I get (in the browser) is 400 Invalid parameter value for redirect_uri: Invalid scheme: myscheme://oauth</p>

<p>Can anyone help me what am I missing here?</p>