Picture of Jonas Jelinski
Fire base connection
by Jonas Jelinski - Monday, 5 August 2024, 3:55 PM
 

Hi,

I want to write an extension, which allows users to send data to a fire base data base by pressing a button.

What is the best approach for the Adapt framework?

We use

 "name": "adapt_framework",
 "version": "5.18.5",


Thank you for your help!
Jonas

2.14.0.0
Picture of Ignacio Cinalli
Re: Fire base connection
by Ignacio Cinalli - Tuesday, 6 August 2024, 2:19 PM
 

Hi Jonas, it is possible to save data from Adapt to Firebase, but you should keep in mind how to maintain security and keep Firebase credentials hidden. Maybe the best approach is to handle this on the backend (for example, with a Node.js app or with Firebase Cloud Functions).

Then, from Adapt, you would make a fetch request to the server, passing the data you want to save.

Picture of Jonas Jelinski
Re: Fire base connection
by Jonas Jelinski - Wednesday, 7 August 2024, 7:39 AM
 

Thank you Ignacio!

I will try that!

2.14.0.0