firebase java desktop app

2,021 views
Skip to first unread message

sibi varman

unread,
Dec 6, 2016, 12:25:55 AM12/6/16
to Firebase Google Group
Iam trying to use firebase in a java desktop application. I have seen other posts that tells to setup a custom server. I have no idea where to start. Any help would be great.

Jacob Wenger

unread,
Dec 6, 2016, 3:14:13 PM12/6/16
to fireba...@googlegroups.com
Hey Sibi,

Unfortunately, we do not have a great story for desktop Java applications. We only have a client SDK for Android and an Admin Java SDK for the JVM. We do not currently have a version of the client SDK which works with Java desktop apps.

That being said, you have three workarounds (although admittedly none of them are that great):
  1. Use the client Node.js SDK instead. We have a version of the client SDK which runs on Node.js and is perfect for desktop applications built using Electron.
    1. Pros: This is the best supported way to build desktop apps with Firebase.
    2. Cons: You want to use Java, not JavaScript.
  2. Move all of the Firebase logic to a custom server which running the Admin Java SDK. To interact with Firebase, you'd send REST requests to your custom server, which essentially acts a proxy to Firebase.
    1. Pros: Allows you to actually use Firebase to build a desktop app in Java.
    2. Cons: One of the major benefits of using Firebase is that you don't need a custom server. This route requires a server and means you lose all the realtime aspects of using Firebase from the client.
  3. Use the Firebase Realtime Database REST API instead of the Firebase SDK itself.
    1. Pros: No custom server required and you can still get realtime updates through the REST API.
    2. Cons: Authenticating to the REST API as an end-user is non-trivial. Still may require a custom server. See this thread from more details.
We realize Java desktop apps are an important thing for many developers and hope to improve our story around them in the future. However, at the moment, there are no plans for this in the near future.

Hope that helps, and sorry I don't have better news for you.

Cheers,
Jacob

On Mon, Dec 5, 2016 at 8:34 PM, sibi varman <mail...@gmail.com> wrote:
Iam trying to use firebase in a java desktop application. I have seen other posts that tells to setup a custom server. I have no idea where to start. Any help would be great.

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/12e72eae-e93d-422e-9ae6-bc8fc740a455%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages