I am trying to add text(32424234) into my firebase under the userid of the user but it doesnt let me do it.
This is my rules section under firebase
{
"rules": {
"users": {
"$uid": {
".read": "$uid == auth.uid",
".write": "$uid == auth.uid"
}
}
}
}
This is my java code:
public void kullanicikontrol(String kullaniciadi){
mRootRef = new Firebase("https://xxxx.firebaseio.com/users");
Firebase chieldref = mRootRef.child(kullaniciadi);
chieldref.setValue("32424234");
}
if i change rules like ".read": true" there is no problem like the screenshot below:
but i dont want to. What i am doing wrong?
