Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Using fetch() to post data to firebase

Does anyone successfully post data to firebase by fetch().

 

I want to collect accelerometer data from fitbit device and post the data to firebase. I sent data to companion app, but I don't know how to use fetch() to post it to firebase. I have already watch many videos and read many documents, but I don't get any solution. I need your help.

 

Thank you!

Best Answer
0 Votes
2 REPLIES 2

I have a same problem .
I have androdi app and fitbit versa app.
I wanna send data(type : Boolean) from Versa to android app.
or to firebase server. 
Do you know how to solve this problem?

Best Answer
0 Votes

I haven't done it myself because I don't really have a use case yet for it, but have you tried making requests with fetch to the database using the REST API? https://firebase.google.com/docs/reference/rest/database

 

You could also use a function: https://firebase.google.com/docs/functions/http-events

Best Answer
0 Votes