Description of the Issue
I use Box in my iOS and Android app (same client id and client secret as I only want to manage the app once). I recently switched to oauth2 in the iOS app which works fine. I set the redirect URI in the box developer console to boxsdk-MY_CLIENT_ID://boxsdkoauth2redirect which works fine for iOS. When I try to use oauth2 using the same redirect URI in Android, I get an ERR_UNKNOWN_URL_SCHEME error after login to Box inside the app.
Strangely, when I close and restart the app, everything seems to work fine: I got a valid Box client which can be used to access Box.
Expected Behavior
I expect the login to work correctly so I don't have to restart the app.
Error Message, Including Stack Trace
Only a short toast showing authentication failed with ERR_UNKNOWN_URL_SCHEME
Description of the Issue
I use Box in my iOS and Android app (same client id and client secret as I only want to manage the app once). I recently switched to oauth2 in the iOS app which works fine. I set the redirect URI in the box developer console to boxsdk-MY_CLIENT_ID://boxsdkoauth2redirect which works fine for iOS. When I try to use oauth2 using the same redirect URI in Android, I get an ERR_UNKNOWN_URL_SCHEME error after login to Box inside the app.
Strangely, when I close and restart the app, everything seems to work fine: I got a valid Box client which can be used to access Box.
Expected Behavior
I expect the login to work correctly so I don't have to restart the app.
Error Message, Including Stack Trace
Only a short toast showing authentication failed with ERR_UNKNOWN_URL_SCHEME