Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
212 views
in Technique[技术] by (71.8m points)

android - Debugging Firebase Database

Is there a way to debug a firebase database connection (Android)? I'm using a really simple example (nothing big, just two listeners that listen on changes) that checks the value of /.info/connected. Most of the time, it returns false and the data is not synchronized. Sometimes it works, but not reliable.

There seems to be no problem with the internet connection - Auth and Storage works on the phone and a different phone in the same network can connect to the database just fine, so I think it has to do something with the phone. I'm testing with a Samsung XCover 3 (Lollipop, works) and a Wiko Sunset 2 (Kitkat, doesn't work).

The Wiko phone is really cheap, could that be a reason?

Are there any features to look deeper into firebase that could point me to the problem? The onCancelled method of my ValueEventListener doesn't get called and there are no log messages.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...