progressDialog.setMessage("Registering the User...");
progressDialog.show();
fireBaseAuth.createUserWithEmailAndPassword(email, password)
.addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {
public void onComplete(@NonNull Task<AuthResult> task) {
Toast.makeText(MainActivity.this, "Inside the firebaseAuth ", Toast.LENGTH_SHORT).show(); // <---- doesn't go here
if (task.isSuccessful()) {
Toast.makeText(MainActivity.this, "User Registered successfully", Toast.LENGTH_SHORT).show();
} else {
Toast.makeText(MainActivity.this, "Please try again", Toast.LENGTH_SHORT).show();
}
}
});
There is no error but the app doesn't add the user in the firebase and the Progress dialog message "Registering the User..." gets displayed forever
on the app. I tried to debug the code but couldn't find out why its not saving in firebase.
Any help in this regard is highly appreciated.
Thanks
Satya
Hello Satya,
There’s really not going to be much we can do to help without a complete minimal repro and some more debug logs.
You can start by turning on debug logging for some useful clues, and making sure that the user is in fact authenticated at the time of the request. Here’s how to turn on debug logging;
JS: firebase.database().enableLogging(true);
iOS: [FIRDatabase setLoggingEnabled:YES];
Android: FirebaseDatabase.getInstance().setLogLevel(Logger.Level.DEBUG);
☼, Kato
--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/3ca8adb5-6c78-46d9-b4ae-34429ff6b44e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/3ca8adb5-6c78-46d9-b4ae-34429ff6b44e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/faf2e2d1-02dc-4478-8bb4-4e031eb10160%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/faf2e2d1-02dc-4478-8bb4-4e031eb10160%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/78485e96-234f-4631-9c02-48a820cde0fd%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/78485e96-234f-4631-9c02-48a820cde0fd%40googlegroups.com.
Hi Satya,
This is the critical line here:
W/GooglePlayServicesUtil: Google Play services out of date. Requires 9452000 but found 8489470
That means the SDK your using needs Google Play services 9.4.x on the device but your device only has 8.4.x. Real decides are automatically updated so i suspect you're using an emulator. If so, you'll need to go to the SDK manager, download the latest emulator image, and re-create your emulator. Unfortunately emulators can't get over the air Play services updates so this is something you have to do once in a while.
- Sam
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/23a08ca6-1aa3-49a0-8a41-ed90d9f658c9%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/9ada632e-4902-429f-8c09-52ad406e1084%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/fdb2d0ae-dcdd-4d92-8e41-08bb3c946a89%40googlegroups.com.