Organization Firebase database configuration in a Xamarin.Forms app

Naveed Ahmad Hematmal 21 Reputation points
2021-06-27T09:49:53.447+00:00

I have an open-source solution for Vaccine Distribution and Tracking. The solution includes two projects, one in asp.net for Admins and one in Xamarin.Forms for Volunteers, and I have configured the Firebase Project for a real-time database and Authentication provider [in development]. Admin is responsible for creating accounts for volunteers, and then volunteers are downloading the app from the play store and can access the app via the email and password created by the admin.

Now, here is the problem. An organization or a team wants to configure this app for a region. They are configuring their firebase real-time database with the admin panel and creating accounts for the volunteers., but the configuration I mean API Key and Project URL is not set on the mobile apps. Volunteers should only have emails and passwords, but how to configure them for the firebase their organization is using.

I have a solution, but it has a problem within it.
I have a page that appears once and at a first-run before the login page, and it asks about the API key and Project URL. But there is the problem, the admin won't give the API key and the project URL, as I know that is not a good practice.

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,313 questions
{count} votes