I am building an Android app that utilizes the Digital Ocean API. To authenticate, the app opens a Chrome Custom Tab to the Digital Ocean OAuth page. I have my redirect URI set to myapp://authorize/
and have registered that in my Android Manifest with the following:
<intent-filter>
<data
android:host="authorize"
android:scheme="myapp" />
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
</intent-filter>
After Digital Ocean redirects to my url (myapp://authorize/?code=accesstokenhere
), the custom tab gives me ERR_UNKNOWN_URL_SCHEME.
However, the URL works just fine in the emulator's Browser application.