[英]Can I use Firebase with java desktop app?
I'm developing a java desktop POS System, and I want all the users to be connected together with firebase.我正在开发一个 java 桌面 POS 系统,我希望所有用户都与 firebase 连接在一起。 So, can I use Google Firebase with a Java desktop application?那么,我可以将 Google Firebase 与 Java 桌面应用程序一起使用吗?
There is no official SDK for using Firebase in client-side Java applications.没有用于在客户端 Java 应用程序中使用 Firebase 的官方 SDK。
You can use some Firebase products through their REST API , but you'll have to write your own client-side access code for that.您可以通过其REST API使用某些 Firebase 产品,但您必须为此编写自己的客户端访问代码。
There is an official Firebase Admin SDK for use in Java applications.有一个用于 Java 应用程序的官方 Firebase Admin SDK。 But this SDK grants the users of the application full administrative access to your Firebase project, so it should not be used in Java applications that you share with regular (non-administrative) users.但是此 SDK 授予应用程序用户对 Firebase 项目的完全管理访问权限,因此不应在您与常规(非管理)用户共享的 Java 应用程序中使用它。
Also see:另见:
It's extremely round-about.这是非常迂回的。 But you can use firebase with desktop using outbound HTTP connections and firebase functions.但是您可以使用出站 HTTP 连接和 firebase 函数将 firebase 与桌面一起使用。 Just make sure you set up your own client api key or else anyone can mess with your firebase!只要确保您设置了自己的客户端 api 密钥,否则任何人都会弄乱您的 Firebase!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.