简体   繁体   English

如何从Raspberry Pi我的firebase项目连接Java类?

[英]How do I connect a Java class from Raspberry Pi my firebase project?

I am trying to connect my Java class to firebase but I can only find documentation for how to do so through Android. 我正在尝试将我的Java类连接到firebase,但我只能通过Android找到有关如何执行此操作的文档。 I am planning on uploading the Java class to a raspberry pi and I need to connect it to firebase so an Android app will not work. 我打算将Java类上传到raspberry pi,我需要将它连接到firebase,这样Android应用程序就无法运行。

There are two SDKs for Firebase that are relevant, but don't apply here. Firebase有两个相关的SDK,但不适用于此处。 I'll still list them: 我还会列出它们:

  1. The Firebase SDK for Android, which is meant to be used in Android apps. 适用于Android的Firebase SDK,适用于Android应用。
  2. The Firebase Admin SDK for Java, which is meant to be uses in JVM applications that run in a trusted environments, such as a server you control. Firebase Admin SDK for Java,适用于在受信任环境(例如您控制的服务器)中运行的JVM应用程序。

Your target deployment systems seems to fit neither of those, so (as said) these likely don't apply. 您的目标部署系统似乎不适合这些,因此(如上所述)这些可能不适用。

In that case, the best option is probably to check if there's a REST API for the Firebase product(s) that that you are trying to use, and call those with HTTP calls from your Android app. 在这种情况下,最好的选择可能是检查您尝试使用的Firebase产品是否有REST API,并从您的Android应用程序调用那些带有HTTP调用的产品。

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

相关问题 如何在Raspberry PI中启动时设置.java程序? - How do I set a .java program in startup in a Raspberry PI? 我无法在 Raspberry pi 上编译我的 javafx maven 项目 - I cannot compile my javafx maven project on Raspberry pi 在Raspberry Pi上从C ++代码调用Java类 - Calling Java class from C++ code on Raspberry Pi 如何在Eclipse中的项目中包含.class文件? (JAVA) - How do I include .class files in my project in Eclipse? (Java) 我可以在Raspberry PI上从Java打印到USB打印机吗? - Can I print to USB printer from Java on a Raspberry PI? 如何在没有 SDK 的情况下将数据传感器数据从 Microsoft band 2 获取到 Raspberry pi? (对于编程语言) - How do I get data sensor data from Microsoft band 2 to a Raspberry pi without SDK? (To a programming language) Java-如何从其他项目中调用类? - Java - How do i call a class from a different project? 如何从现有的Java项目中提取主类? - How do I extract a main class from an existing Java project? 如何在树莓派上构建 maven 项目 - How to build maven project on Raspberry pi 创建套接字连接到 windows 10 机器从 Raspberry pi 4 Raspbian 不工作 (Java) - creating Socket to connect to windows 10 machine from Raspberry pi 4 Raspbian does not work (Java)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM