我将Firebase身份验证与提供程序一起用于Microsoft登录。 一切似乎都很好,但是当用户登录后,提供者(活动)不会自动关闭。
provider = OAuthProvider.newBuilder("microsoft.com");
dialog = new ProgressDialog(MicrosoftActivity.this);
dialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);
dialog.setTitle("Connexion en cours");
dialog.setMessage("Veuillez patienter...");
dialog.setIndeterminate(true);
dialog.setCanceledOnTouchOutside(false);
auth = FirebaseAuth.getInstance();
auth
.startActivityForSignInWithProvider(MicrosoftActivity.this, provider.build())
.addOnSuccessListener(
authResult -> {
new Download(dialog, MicrosoftActivity.this);
// User is signed in.
// IdP data available in
// authResult.getAdditionalUserInfo().getProfile().
// The OAuth access token can also be retrieved:
// authResult.getCredential().getAccessToken().
})
.addOnFailureListener(
e -> {
// Handle failure.
dialog.dismiss();
});
我只想在登录后关闭此选项卡(Samsung Internet) 如果我可以帮助您仅使用chromecustomtabs打开此提供程序
编辑:我在互联网上搜索很多,我需要帮助。..我只想关闭thise provider.build