Google的firebase(实时数据库)可以与Java桌面应用程序一起使用吗? [英] Can google's firebase(Real-time database) work with a java desktop application?

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

问题描述

我想使用实时数据库(Firebase)将我的android应用程序与java桌面应用程序进行通信.

I want to communicate my android application with java desktop application using real time database (Firebase).

推荐答案

可以创建使用Firebase Admin SDK来访问数据库和其他功能的Java桌面应用程序.语法类似于Android应用程序中使用的语法.

It is possible to create a Java desktop application that uses the Firebase Admin SDK for accessing the database and other features. The syntax is similar to what is used in Android apps.

但是请注意,这使用了Admin SDK,(如其名称所暗示的那样)为用户提供了对后端的完全管理访问权限.根据您的用例,可能不是您想要的.

But note that this uses the Admin SDK, which (as its name implies) gives users full, administrative access to the back-end. Depending on your use-case, that may not be what you want.

一种替代方法是让您的JavaFX应用程序与Firebase数据库的REST API对话,该文档记录在这里: https://firebase.google.com/docs/database/rest/start

An alternative would be to have your JavaFX application talk to the Firebase Database's REST API, which is documented here: https://firebase.google.com/docs/database/rest/start

另请参阅:

  • Can google's firebase work with a java desktop application?.
  • Using Firebase Admin in a Java desktop application (using Eclipse)

这篇关于Google的firebase(实时数据库)可以与Java桌面应用程序一起使用吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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