Closed m1ga closed 1 year ago
able to push data with auto id now! Example works now on Android, although it complains on iOS that FirebaseDatabase.getReference()
is not allowed without an argument.
@m1ga iOS requires an object with at least one of these keys:
NSString *identifier = [arguments objectForKey:@"identifier"];
NSString *path = [arguments objectForKey:@"path"];
NSString *url = [arguments objectForKey:@"url"];
NSArray *observableEvents = [arguments objectForKey:@"observableEvents"];
@hansemannn nice :+1: will test that later
@m1ga Anything I should change / add on iOS as well?
At the moment I try to match the iOS version. Still have to find my way around it to see what url/path does and where I need to store what :smile: It's working but I need to check if both plugins store it in the same places
@m1ga Is this ready for review? I am adding Firestore as well, so I found this one
oh, have to test that again. It worked but I'm not sure if it stored the data the same way as iOS did.
updated the library and fixed some issues I had with having new "child in child" items all the time.
Only did some smaller tests and the data is there I'm getting live updates/events and can add, update and delete items.
So if you have some test case I would love to get some feedback if the structure is right at the end
Since I had to use it with Firestore Database today:
FirebaseDatabase.queryFirestore({
collection: "collection",
// document: "documentId" // only one document - otherwise whole collection
});
FirebaseDatabase.addEventListener("query", function(e) {
console.log(e.data);
});
will return an array of id: "", data: "..."
where data
is a JSON string.
firebase.database-android-1.0.0.zip
no other options yet, but reading works. Keep it in this module (since it is just called database) or should we create a firestore-database spin-off?
Let's start with this one and iterate from there :)
This is just a very basic start!
FirebaseDatabase:
DatabaseReference:
Firestore Databse:
queryFirestore({collection, [document])
query
firebase.database-android-1.0.0.zip