Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
201 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 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...