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

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

Related

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.
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!

How to connect android application with my websit database?

I have already design a web site using Spring MVC. Now I want to develop an android application that able to get the client details of my web site and the interface is completely different from my web site and also has additional functions. The changes made through android application should be updated in my web site also. What is he best way to do it? Can I make my database common for both applications or I want to move into REST web services.

Mobile App and website on app engine using same data

I have developed a website in Java/JSF/HTML5 in google app engine. I want to create a mobile app using the same data.
I am trying to create an cloud endpoints web service to provide the data to/from the mobile app. but it creates another version on the default service in the app.
Maybe I need to create another service in the google app engine application, is there any way to be created?
I couldn't find any examples about this. Could you please point me to some preferably in Java.

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

linking android application with google app engine datastore

i am looking for a link through a web service between an android application and an application that is deployed on google app engine.the user inputs data in the android application which has to be passed to the jsp and jpa application deployed on the google app engine.Can anyone please help...
See this article for how to authenticate against App Engine from inside your Android app. From there, how you interface is up to you: You can write a RESTful API, or use any number of HTTP-based RPC protocols to communicate between the Android app and the site. Which you choose depends on your needs, which you haven't detailed.

Categories