Category : firebase-authentication

When authenticating using Firebase Auth, I want to auto input the code that is received via SMS. I am able to receive SMS and go through auth process manually, but when I use SmsRetriever, the app crashes and then the bottom sheet dialog shows up. This is everything that that appears in Logcat: java.lang.RuntimeException: Error ..

Read more

I created an upload image functionality in my app. The image uploads and shows for the user and returns "uploaded" upon success. I want to store the same image url that is being stored in the storage to be in the current users field in the database. But the code I’ve written still doesn’t insert ..

Read more

I am implementing normal sign-in flow in FirebaseUIAuth However, startActivityForResult is never fired, hence The Fragments where FirebaseAuth.getInstance() is required crashes. I have logged onActivityResult, the log never appears which confirms my case. Here is the minified code of functions involved. protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); binding = ActivityMainBinding.inflate(getLayoutInflater()); View view = binding.getRoot(); setContentView(view); ..

Read more

I am writing my first app in kotlin and am using FirebaseAuth & AuthUI for authentication. My login screen works perfectly, and looked like: Now I am trying to change my AppTheme’s parent to "Theme.MaterialComponents.NoActionBar" (from "Theme.AppCompat.NoActionBar") but the login screen changed to: I call the login screen like so: startActivityForResult( authUI.createSignInIntentBuilder() .setAvailableProviders(providers) .build(), RC_SIGN_IN ..

Read more

So weird about Android Firebase Authentication This is my code fun createAccount(email: String, password: String){ mAuth.createUserWithEmailAndPassword(email, password) .addOnCompleteListener { } .addOnFailureListener { Log.d("mAuth", "OnFailureListener $it") } .addOnCanceledListener { Log.d("mAuth", "OnCanceledListener") } } Then it came to addOnFailureListener, and this is the log 2021-01-15 19:12:41.135 1073-1799/com.google.android.apps.nexuslauncher E/ActivityThread: Failed to find provider info for com.google.android.apps.wellbeing.api 2021-01-15 19:12:42.122 ..

Read more