dependencies {
implementation('com.android.support:customtabs:25.2.0')
}
import android.net.Uri;
import androidx.browser.customtabs.CustomTabsIntent;
import static android.content.Intent.ACTION_VIEW;
import android.content.SharedPreferences;
import android.webkit.CookieManager;
import java.net.HttpCookie;
// Begin WebAuth onResume
if (WebAuthAwaitingResponse)
{
Intent webAuthIntent = getIntent();
if (ACTION_VIEW.equals(webAuthIntent.getAction()))
{
Uri data = webAuthIntent.getData();
handleAuthenticationUri(data);
}
else
{
handleAuthenticationUri(null);
}
}
// End WebAuth onResume