User details doesn’t get registered in firebase when signing in from my Flutter app
I’m developing a mobile app using Flutter and use Firebase for backend services. I’m using Firebase Authentication for authentication. The method is email and password. However when signing up the user I also store the device ID along with the user ID(the user ID given when signed in to firebase authentication) in a Firestore Database document.
The problem I’m having is when the details are entered and the button is clicked to sign up the user details doesn’t get registered in Firebase Authentication and the device ID along with the user ID doesn’t get saved in the database as well. I’m using try-catch
statements and log
statements to find the code but none of them show up in the console. I tried Authentication separately(without saving the device ID), then the user details gets registered in Firebase Authentication.
Here are the codes I’m using:
auth_service.dart – This file contains the methods for sign up/log in
how can fix “firebase in flutter “
FAILURE: Build failed with an exception.