由于某些原因,我的firebase代码没有任何问题。什么都没有被推动,但没有错误被抛出,我的对象被填满。问题是什么?
Firebase userref = new Firebase("https://barter.firbaseio.com/Users/0").child("Chat").push();
Map<String,String> chatobj = new HashMap<String,String>();
chatobj.put("User1",myuser.getEmail());
chatobj.put("User2",creator.getText().toString());
try {
Log.i("Hello",chatobj.toString());
userref.setValue(chatobj, new Firebase.CompletionListener() {
@Override
public void onComplete(FirebaseError firebaseError, Firebase firebase) {
Log.i(firebaseError.toString(),firebaseError.toString());
}
});
}catch (FirebaseException j) {
Log.i("SOmething si happening", j.toString());
}