我在火力創建表並保存數據耦合,並希望通過指定輸入等來查詢具體的數據,其中條件SQLite中:有錯誤的數據火力地堡查詢沒有提供任何回電
Query queryRef = ref.orderByChild("name").equalTo(username);
queryRef.addChildEventListener(new ChildEventListener() {
@Override
public void onChildAdded(DataSnapshot dataSnapshot, String previousChild) {
// i get the call back if i specify username which is already there in table
}
});
我問題是當我傳遞表中不存在的任何值時,我沒有收到任何回叫。
如何在Firebase中處理這種情況。有沒有其他迴應我應該聽?
嘿@Atmaram,讓我知道如果我的回答不清楚或者您還有其他問題。謝謝! – adolfosrs