Can I use Firebase with java desktop app? - java

I'm developing a java desktop POS System, and I want all the users to be connected together with firebase.
So, can I use Google Firebase with a Java desktop application?

There is no official SDK for using Firebase in client-side Java applications.
You can use some Firebase products through their REST API, but you'll have to write your own client-side access code for that.
There is an official Firebase Admin SDK for use in Java applications. 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.
Also see:
Can google's firebase(Real-time database) work with a java desktop application?
Can google's firebase work with a java desktop application?
Get credentials for desktop Java SE Firebase project

It's extremely round-about. But you can use firebase with desktop using outbound HTTP connections and firebase functions. Just make sure you set up your own client api key or else anyone can mess with your firebase!

Related

How to create java web service to write data to Firebase?

We are creating an Android app and web app using Firebase 3.0.0. Right now both these clients are writing data directly into Firebase database.
We wish to avoid this by introducing Web Services component in between. This component will write data to Firebase, and it will be consumed by Android and Web (or iOS in future) apps.
We have decided to develop web services using Java, we found Firebase JAR for JVM.
There are no Firebase tutorials to implement such a component.
Can we use this JAR for creating web services in Java? How?
Thanks
For the new Firebase, you can use the server SDK from this documentation page: https://firebase.google.com/docs/server/setup. Then start accessing the Database by following the instructions here: https://firebase.google.com/docs/database/server/start

Using backend service providers with standalone applications

I am developing a restaurant POS & ordering system for my college project, I'm hoping to develop a standalone Java/C# (Still deciding) app which would serve as the POS and adding menu items + an android app for waiters to take orders from customers.
I'd like to connect these two apps and for the backend I'm looking into integrating Firebase or back4app since parse is being discontinued, is this a good choice?
I'd like some pointers on how to set up the database connection with a internet based backend service provider like Firebase or back4app with a standalone application.
Please feel free to suggest other possible routes I could take to connect these two apps together.
Thanks!
The Firebase realtime database component includes a JAVA Server SDK and a REST API which could be used for integrating with your standalone application.
There is some JAVA SDK documentation here:
https://firebase.google.com/docs/database/server/start

CouchDB with Android application

We have a web application developed iin GWT using couchDb as database, now we want to develop android application for the same web application. So we want to use same coucDB database for the android application also, in order to keep the one database for both applications (web & android).
So how to configure android application with couchDB.
Thank You
If your app does not need to work offline, you can just use your favorite HTTP client library, or a CouchDB-specific Java library to access your database over the network.
If you want to have your app maintain its own copy of your database (for offline and/or peer-to-peer usage), check out Couchbase Lite for Android — it can replicate with Apache CouchDB (which it sounds like you're using) or with Couchbase Sync Gateway (which has a few extra permissions management features).
You can also do similar from JS, if you're making a PhoneGap/Cordova app instead of native Java, by using the PouchDB library instead of the native Couchbase Lite library.

Sharing database between android and windows phone

I have application developed by different apk/api, I have version java Desktop application and Android Application and Windows phone 8.1 Application , My problem that the three version use the same database to access it can modify and insert ..etc
how i create shared database between them to use the same database via internet because i enforce my user to access the internet to use the application. There is any way to do that ?
Sure! Host a WebService for sharing data amongst devices. Using a simple php script to insert and select will allow you to achieve this.
Something like this blog would help develop understanding of web services if you want a place to start.
You can create a an online database without having to implement your own backend using this website Parse and implement platform specific code to read/write data for different platforms using their SDKs.

invoking facebook api(php) using java program hosted in google app engine

I created a Facebook API using PHP and MySQL and hosted it on a domain. Now I would like to host it on Google App Engine, however, Google App Engine does not support PHP. I would like to learn how to write a Java application that can invoke Facebook's API through HTTP and host the Java application on Google App Engine.
If you have any advice or links on how I can accomplish this, it would be a big help.
FYI GAE does support PHP Now: https://developers.google.com/appengine/docs/php/gettingstarted/introduction

Categories