Reputation: 159
I am working on a private iOS app, I can use for my smart home. I write the app using swift. The app communicates with a realtime database from Firebase. I would now like to write a program for a Raspberry Pi, that sends data to the same realtime database so it can communicate with my iOS app. Is this possible? Can a Raspberry Pi access the same database as an iOS App?
Upvotes: 0
Views: 169
Reputation: 599716
The Firebase Realtime Database has a REST API that is callable from almost any platform, as you can access it by sending HTTP requests to the server.
For Python and iOS there are also SDKs, which are typically easier to work with than the REST API.
No matter which API/SDK you use to access the realtime database, all code accessing the same project (i.e. the same database URL) will be reading/writing the same database.
Upvotes: 1