我的Firebase身份验证在Unity编辑器中工作正常,但在Android移动设备中工作不正常。请帮忙-有什么问题吗?
为什么它不能在Android设备上使用?
这是我使用的代码:
public void Login()
{
print("Hello");
firebaseAuthenticationManager.SignInWithEmailAndPasswordAsync(emailUser, passwordUser).ContinueWith(task => {
if (task.IsCanceled)
{
Debug.LogError("SignInWithEmailAndPasswordAsync was canceled.");
return;
}
if (task.IsFaulted)
{
Debug.LogError("SignInWithEmailAndPasswordAsync encountered an error: " + task.Exception);
return;
}
print("Login Success");
SceneManager.LoadScene("tempscene");
// Firebase.Auth.FirebaseUser newUser = task.Result;
// Debug.LogFormat("User signed in successfully: {0} ({1})",
// newUser.DisplayName, newUser.UserId);
});
}