Twitter auth SDK showing error ERR_UNKNOWN_URL_SCHEME

android

#1

I am using com.twitter.sdk.android:twitter:2.3.2@aar in my Android application.

On certain devices mainly Samsung S6, running Android 6.0 I users are reporting that they see following error message in webview.

Webpage not available: The webpage at twittersdk://callback?version=2.3.1.171&app=[app_id] could not be loaded because: net::ERR_UNKNOWN_URL_SCHEME:

The code that initiates the twitter auth looks like this:

        final String clientId = authApiManager.getClientId();
        TwitterAuthConfig authConfig;
        final Resources resources = this.getResources();

        authConfig = new TwitterAuthConfig(resources.getString(R.string.authapi_twitter_key),
                resources.getString(R.string.authapi_twitter_secret));

        Twitter tw = new Twitter(authConfig);
        Fabric.with(this, tw);
        twitterAuthClient = new TwitterAuthClient();

Any suggestion why I might be getting ERR_UNKNOWN_URL_SCHEME errors when trying to auth using TwitterSDK?


#2

FWIW, I upgraded to using Twitter kit 3.1.0 and now I see following message

Webpage not available: The webpage at twittersdk://callback?version=3.1.0.8&app=[app_id] could not be loaded because: net::ERR_UNKNOWN_URL_SCHEME: