0

I am making a chat app but I am not implementing google sign-in for mobile number.Instead I am using my own method by using password. So, now I want to upload users files ,profile images, videos etc... and for that I need google sign-in to upload on the Firebase Storage.Now because I doubt want auth by google to be used by the user, I have written this code on the splash activity.

FirebaseAuth.getInstance().signInWithEmailAndPassword("testLoginId@gmail.com","123456")
            .addOnCompleteListener(task -> {
                if (!task.isSuccessful()){
                    Toast.makeText(this, "Could not sign in correctly.Please check your network.", Toast.LENGTH_SHORT).show();
                }
                startActivity(new Intent(getApplicationContext(), SignInActivity.class));
                finish();
            });

I have also created a user with these details on the firebase auth console.I am also using firebase AppCheck to protect my apps user data.

It works fine on emulated, real device( When not uploaded on google play store).But when I upload on google play store ,I get an error like uploadUser Is Not Authenticated (I use apk for testing but aab for google play).

Now what should I do to prevent it? If any more details are required for the question, please mention it in the comments and I will add it.

Sambhav. K
  • 3,046
  • 2
  • 5
  • 29
  • Most likely it's because of [this](https://stackoverflow.com/questions/51360250/firebase-ui-authentication-with-google-fails-with-message-code10-message10/51360406), right? – Alex Mamo Dec 31 '21 at 11:26

0 Answers0