{
"unique_key1": {
"email":"someone@one.com",
"name": "name1",
"age": 21,
"password": "xyz"
"gcm_id":"abc"
},
"unique_key2": {
email:"sometwo@two.com",
"name": "name2",
"age": 2,
"password": "xyz1"
"gcm_id":"abc1"
}
}
I am trying to create a loginActivity for my android application.I know we can use the firebase auth for login but as i have to store more data along with email and password therefore i have create my own custom login.I have read many blogs on retrieving data and queries but no where found multiple where clause for verifying a user.
var ref = new Firebase('https://your.firebaseio.com/');
ref
.orderBy('email')
.startAt('someone@one.com').endAt('someone@one.com')
.orderBy('password')
.startAt('xyz').endAt('xyz')
I have used above code which i used from Query based on multiple where clauses in firebase but no success as it throws exception of multiple orderby in log .I have also read this blog https://www.firebase.com/blog/2013-10-01-queries-part-one.html . Please help