简体   繁体   English

google 的 firebase 可以与 java 桌面应用程序一起使用吗?

[英]Can google's firebase work with a java desktop application?

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.我正在使用 firebase 开发一个 iOS 应用程序,但我还想创建一个 Java 桌面应用程序来访问该应用程序使用的同一实时数据库。 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.我觉得这应该能够工作,因为 firebase 适用于用 Java 编写的 Android 应用程序。 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 网站。

Firebase has a server SDK for Java that should also work in a desktop Java application. Firebase 有一个用于 Java 的服务器 SDK,它也应该在桌面 Java 应用程序中工作。 The code is very similar to the Android Firebase code so you'll see familiar classes like DatabaseReference or ValueEventListener .该代码与 Android Firebase 代码非常相似,因此您会看到熟悉的类,如DatabaseReferenceValueEventListener

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM