Android Question Firebase UI Auth simultaneously event raises

yiankos1

Well-Known Member
Licensed User
Longtime User
Hello,
I use @DonManfred library to authenticate users. When i try wrapper's example and i do this procedure several times, click back button(quit app) then re-enter app and click sign out button i get at log simultaneously event raises.
B4X:
onAuthStateChanged()
You are logged offf
** Activity (main) Pause, UserClosed = true **
** Activity (main) Create, isFirst = false **
** Activity (main) Resume **
onAuthStateChanged()
onAuthStateChanged()
onAuthStateChanged()
onAuthStateChanged()
onAuthStateChanged()
onAuthStateChanged()
You are logged offf
** Activity (main) Pause, UserClosed = true **
** Activity (main) Create, isFirst = false **
** Activity (main) Resume **
onAuthStateChanged()
onAuthStateChanged()
onAuthStateChanged()
onAuthStateChanged()
onAuthStateChanged()
onAuthStateChanged()
onAuthStateChanged()
You are logged offf
** Activity (main) Pause, UserClosed = true **
 

DonManfred

Expert
Licensed User
Longtime User
i guess it is because it added a listener when initialize the lib. But there is no removal of the listener added.
I guess i need to return the listener to b4a so you then can call a method in activity pause to remove the listener. And add it back in activity resume.

Will check this evening
 
Upvote 0

yiankos1

Well-Known Member
Licensed User
Longtime User
i guess it is because it added a listener when initialize the lib. But there is no removal of the listener added.
I guess i need to return the listener to b4a so you then can call a method in activity pause to remove the listener. And add it back in activity resume.

Will check this evening
So it is more than we expected, as you described at the other post the whole procedure you followed. But I have to say that firebase ui working fine even with sdk updates expect these simultaneously event calls...
 
Upvote 0

yiankos1

Well-Known Member
Licensed User
Longtime User
true
It needed a rewrite of the wrapper to match the new code in the Updated UI Library
I would like to thank you for your interest. Do you think that can be fixed? Because I saw you a little bit frustrated and I am asking because it is crucial part of my app the Auth part of my users....
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Because I saw you a little bit frustrated
true :D

I´ll create a new Thread about the problem later and maybe Erel can give some light on it.
It is not lost as of now. And i still do not want to give up on this :)
Ok, i´m stuck as of now but i´m sure there will be a solution. More i HOPE there is

Honestly: after months of bad weather and only a really few sunny days this year and this weekend the weather is beautiful. The degrees are raising each half hour (18 Degree as of now, clear Horizont, no clouds.
Due to this my motivation is not that much :D

But as i said: It is not lost; just it needs some time to fix.
 
Upvote 0

yiankos1

Well-Known Member
Licensed User
Longtime User
The degrees are raising each half hour (18 Degree as of now, clear Horizont, no clouds.
It's because I try to help from Greece :D hahah

I´ll create a new Thread about the problem later and maybe Erel can give some light on it.
I will wait about that post if could help somehow.
 
Upvote 0
Top