0

I am creating an android app integrated with Firebase as the backend. I used Firebase Authentication for the authentication and management of users. I also used Firestore for the database. In my app, there will be a data(collection) named LoanRecord with the fields of lender and borrower. These 2 fields will contain user data (like foreign key in SQL database). Every time a user will create a LoanRecord data, the app will need to fetch the available users, so that the user can select and set it to the lender and borrower fields.

Now how can I fetch all the users to my android app? I do not have my own backend, so I cannot use the Firebase Admin SDK. I also don't want to use the cloud functions because apparently it's not free (this app is only for my personal use so I don't want to spend money for it).

Al Ryan Acain
  • 327
  • 5
  • 15

1 Answers1

1

Since you indicate not wanting to use Cloud Functions, the solution would be to have each user write their own user data to the database when they register/sign-in.

You can then refer to that information in the database when you need it.

This has been covered quite a few times before already, so I recommend checking out:

Frank van Puffelen
  • 499,950
  • 69
  • 739
  • 734