Can i send data from firebase to my website? - android

Can I send data from firebase to my website? I am interested in storing data of android app to the firebase, then retrieve the data in my website. Is this possible to do?

Yes, you can connect an Web app and an Android app to the same Firebase project and then share the same database, cloud storage, and other resources between them.

You can retrieve the data using javascript, then you'd need to create the logic to deal with that info.
The proccess is quite similar to Android: you get the app info from your firebase app and you can use very similar methods to retrieve the data.
This process is way to long to describe here but you can refer to https://firebase.google.com/docs/web/setup?hl=pt-br to get started.

Related

Android Sensor data to Cloud pubsub

Background
I have a sensor "A" which connects to my mobile app over Bluetooth. This sensor generates 512 data points per seconds.
What I need
I need to send send this data to Google BigTable via Cloud pub/sub. I have already created a topic and I can push message to the topic.
What is the problem
This answer says that I need to create an app engine and connect my app to that app engine. The app engine will receive the data and send it to Bigtable via pub/sub and dataflow.I get this, but now I have two sub problem here -
a. How can stream the data from my mobile app to app engine? Websocket? Because I think I can't do simple post request to post the data to a route (/publishdata), Am I correct?
b. I am authenticating my user on mobile app via firebasea authentication. Can I validate my user on app engine via firebase-admin sdk? I can do that by passing the tokenId but is it the correct method? or can I use firebase to authenticate my users on app engine?
I have seen projects where people are suggesting to create a service account and add it into the app. The problem is I don't want to expose my credentials to client. Another talk
Can anyone suggest me tackle this problem?
Thoughts that I have
I can send data to firebase realtime database and then thinking of moving that data to Bigtable via pubsub or cloud function. I couldn't find any example of an app engine connecting to a firebase and reading data from realtime database. I thought in this example this guys sending data to Realtime database and then using pubsub to move data into Bigtable. If this is possible then can I authenticate my user on the app engine via firebase-admin sdk?
Firstly, you should take a look for this Build an Android App Using Firebase and the App Engine Flexible Environment article, which demonstrates how to write a mobile app with backend data storage, real-time synchronization, and user-event logging using Firebase.
Regarding to your first question about sending data to App Engine, you can send it as an HTTP POST. Please, take a look to following questions on Stackoverflow: 1, 2.
With reference to create a service account and add it into the app, it's not secure option. In this case, you can use Callable Cloud Functions. Refer to this Stackoverflow thread.
You can get data out of the Firebase Realtime Database via backup service which allows for exporting data to GCS Bucket. Then, you can move it to Bigtable, by using open-source Dataflow templates, for instance Cloud Storage Avro to Bigtable. Please, refer to official documentation, to find more about exporting data to Bigtable.
I hope it helps.

I need to make an Android App which will retrieve data from a web database server, so what type of access (telnet, ftp etc) do i need?

I am a beginner in developing android apps, and I need to know which kind of access do I need in order to retrieve data from a web database server to an android app.
You can use Firebase from Google for better database support for your app. You can easily do that using Firebase Documentation.

Store application data on a server

I'm developing an android app. And now I have a problem. I need to store app data somewhere on server side.
For example I want to store user rating by other users and some other data.
I don't want to develop my own server and API.
I mean I want any cloud-base platform for it.
What can I use for server-side data storage?
Fire-base is the Best tool which replaced the own custom server concept for small and new developers. If you need any further detail and help let me know, I'll help you. It'll provide you online real database and storage.
But if you need some clod functions to process data on cloud you can do so by using cloud functions and utilize it as a Server also.
Fire-base
You can use Firebase>>Firebase
Its totally free for small user. And not need to web related Code

Sync data between Android App, Web and Desktop application

Currently, I have an App that sends data to web server.
But, if website sends data to the server, my App does not receive any data from the server.
I want to create an app like Evernote where I don't have to refresh the app to receive data from the server.
So when I sends data from mobile, it has to sync with all other devices.
How do I implement it?? Which method is best for android?
Is GCM the only way to do it?
We need more information regarding what you have tried implementing for us to provide a better solution since your issue is about code implementation.
You may check Firebase Realtime Database as this seems perfect for your situation because with Firebase, "data are synced across all clients in realtime, and remains available when your app goes offline". Since you are using Android, you can check this document: Set up Firebase Realtime Database for Android.

SQLite or Parse for android app?

I am an amateur app developer. I have developed many android apps but for offline use only. Now I'd like to make an online app. The users should login with Facebook account and I handled that. The problem is that I want to save some data like the user Facebook friend-list and some other stuff. I knew that there are 2 ways to solve such problem the first one is using Parse and the second one is using the SQL-lite so which of them should I use?
I think that the Parse database is more suitable in this case, because you will be able to sync the data automatically, when you store it in the cloud

Categories

Resources