谷歌的firebase可以使用Java桌面应用程序吗? [英] Can google's firebase work with a java desktop application?

查看:129
本文介绍了谷歌的firebase可以使用Java桌面应用程序吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个使用Firebase的iOS应用程序,但我也想创建一个Java桌面应用程序来访问应用程序使用的同一个实时数据库。这可能吗?我觉得这应该能够工作,因为Firebase适用于用Java编写的Android应用程序。如果可能,请提供一些关于如何去做的细节。另外,关于谷歌最近宣布的新的和重新整理的firebase网站,我正在问这个问题。 Firebase有一个<一个href =https://firebase.google.com/docs/database/server/start#authenticate-with-admin-privileges =nofollow>服务器SDK for Java ,它也应该在桌面Java应用程序。该代码与Android Firebase代码非常相似,因此您会看到熟悉的类,如 DatabaseReference ValueEventListener p>

I am developing an iOS app using firebase, but I also want to create a java desktop application that accesses the same realtime database that the app uses. Is this possible to do? I feel as if this should be able to work because firebase works for Android apps which are written in Java. If this is possible, please give some details on how to go about doing this. Also, I am asking this in regards to the new and revamped firebase website that Google just recently announced.

解决方案

Firebase has a server SDK for Java that should also work in a desktop Java application. The code is very similar to the Android Firebase code so you'll see familiar classes like DatabaseReference or ValueEventListener.

这篇关于谷歌的firebase可以使用Java桌面应用程序吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆