google的firebase(实时数据库)可以与java桌面应用程序一起使用吗?

时间:2018-02-16 05:54:31

标签: java firebase firebase-realtime-database

我想使用实时数据库(Firebase)将我的Android应用程序与java桌面应用程序通信。

2 个答案:

答案 0 :(得分:3)

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

但请注意,这使用了Admin SDK,顾名思义,它为用户提供了对后端的完全管理访问权限。根据您的使用情况,这可能不是您想要的。

另一种方法是让您的JavaFX应用程序与Firebase数据库的REST API进行通信,这将在此处记录:https://firebase.google.com/docs/database/rest/start

另见:

答案 1 :(得分:0)

Yes you can connect it.In firebase, database is stored in JSON format and you can communicate using java networking api like java.net and connect to firebase. Also, in your project, you need to use JSON api's inorder to process/manipulate json data from firebase.