how to store data on Firebase - Delphi XE 10

2020-02-29 02:51发布

问题:

What is the best way to connect to Google´s Firebase DBaaS from Embarcadero Delphi XE 10 ?

I am not sure how to do it from AnyDAC. Or if exists a component out there (i coundnt find one on search)

Any help? thank you

回答1:

Firebase was acquired by Google and now makes available many tools and features (Cloud Messaging, Authentication, Realtime Database, Storage, Hosting etc...) If you are looking for a service that store and sync app data in realtime, the Realtime Database it's for you. Realtime Database: "A cloud-hosted NoSQL database. Data is stored as JSON, synced across connected devices in milliseconds, and available when your app goes offline." . Firebase provides SDK library for Android, iOS and Web (Javascript). In addition makes available a REST API interface and, as Robert Love said in previous post, Firebase4Delphi (I wrote it) library provides access to the REST API in Delphi. Here there is an example of how to use library.



回答2:

There is an open source project called Firebase4Delphi. It provides access to the REST API in Delphi.



回答3:

In the meantime a new open source library is available on GitHub for Firebase, Firestore, Firebase Storage and Firebase Functions:

Get more information on https://github.com/SchneiderInfosystems/FB4D