FireBase onComplete Event Bugs - Android Studio - Java | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

FireBase onComplete Event Bugs - Android Studio - Java

Hi, I'm currently using Firebase for an Android project for school. When I create a user using an email and password and place an onComplete event - there is a problem. The problem is that this event is not triggered, even though a firebase user is indeed created and everything is going just fine - the problem is that the code inside the onComplete event does not run. Has anyone ever encountered this? any solutions?

6th Oct 2022, 2:32 PM
Yahel
Yahel - avatar
3 Answers
0
When did schools started to tech android programming?
11th Oct 2022, 1:50 PM
0_O-[Mägár_Sám_Äkà_Nüllpøïntêr_Èxëcéptïön]~~
0_O-[Mägár_Sám_Äkà_Nüllpøïntêr_Èxëcéptïön]~~ - avatar
0
Maybe something is preventing onComplete() from execution, check your code carefully or you can upload your code for more clarification.
11th Oct 2022, 1:56 PM
0_O-[Mägár_Sám_Äkà_Nüllpøïntêr_Èxëcéptïön]~~
0_O-[Mägár_Sám_Äkà_Nüllpøïntêr_Èxëcéptïön]~~ - avatar
0
0_O-[Mägár_Sám_Äkà_Nüllpøïntêr_Èxëcéptïön]~~ Hey, thanks for responding. I already figured out what the problem is. The problem was that the Firebase commands are asynchronous and I didn't pay attention to it so it caused everything (I wrote more code after the firebase command, but not in the onsuccess as I should have done). About teaching Android in schools, it depends on the country you live in :)
11th Oct 2022, 2:10 PM
Yahel
Yahel - avatar