How do I use firebase firestore for my desktop app?

Viewed 9370

I'm using the firebase-ui-android authentication flow for my mobile app. I would like to do the same for my desktop app, but it doesn't seem like there is an equivalent framework; the closest seems to be firebase-ui-web. Now I'm playing with the idea of (ab?)using firebase-ui-web to run locally on the client machine for authentication. However, since firebase-ui-web seems to be aimed at the server I'm a bit wary running it on the client side.

The desktop app is fairly simple, it pretty much only needs to read some firestore data.

What are my options here?

3 Answers

The only ways to connect with Firebase are by an Android, an iOS and a web app.

There is no support for desktop apps.

But, you can create a native sync service to link your desktop app with Firebase users throught a web service.

It is feasible to have a desktop app to connect to Firebase. However you should create a hybrid desktop app using electron or other platforms that is by nature use web and javascript. Here is an example of using electron to manage firebase: https://www.electronjs.org/apps/firebase-admin

You can use Google Sign-In for TVs and Devices for that case.

This is not perfect, because you need to use additional access code, but it can work with desktop applications as well

Related