In the firebase constructor, we pass in an auth token. Which we got from AUTH during login. Which we use in our firebase rules. Can you add this feature please? I was unable to Xfer the auth token from droid and iOS to the shared code where firebase services class needs this info.... Many thanks
@MrNawshad
3 жыл бұрын
Will definitely.
@madraven37
2 жыл бұрын
What if I want to register a new user and I must make sure that every username is unique. How can I do that? Is the retrieveing of the linq "a=> a.Object.username == username" applicable for this case?
@MrNawshad
2 жыл бұрын
Check my video on firebase auth. Once you are registered as a user, then you login. And from there you could retrieve your uuid and save that as a reference to the new node. And then you will be able to do a.Object.username = auth.uuid
@madraven37
2 жыл бұрын
@@MrNawshad Thanks, I'll check it out...
@HMBEM
3 жыл бұрын
Hi, how can you search for a student using an especific condition, for example Name or ID and display it on the text fields in order to update ?
@MrNawshad
3 жыл бұрын
We are already searching a student based on its firstName inside the DBfirebase.cs class. You could do the same in your case and bind the searched student to the view. So your method should look like this... public async Task FindStudent(string firstName, string lastName) { var student = (await client .Child("Students") .OnceAsync()).FirstOrDefault (a => a.Object.FirstName == firstName || a.Object.LastName == lastName); // and here you bind the student to the view fitstName.Text = student.firstName.ToString(); lastName.Text = student.lastName.ToString(); }
@syrivera327
3 жыл бұрын
do you have a tutorial for searching in firebase using searchbar?
@MrNawshad
3 жыл бұрын
Not yet. Could do one!
@matt-i3r6w
3 жыл бұрын
please do one
@pgm0217
3 жыл бұрын
Can you github pls
@patrickmokem8684
3 жыл бұрын
how to display only the current user credentials?
@MrNawshad
3 жыл бұрын
Please do check my tutorial on Firebase Auth. After user sign up, you can store the users data under a new node called users, having the UID as the users reference. And after successful login you can query that user data and display it within your view.
Пікірлер: 16