It is better to use the latest version here
_______________________________________________
EDIT: The problem is solved here
It would be of great benefit to the community if this problem would be solved. So if anyone of you is able and willing to help it would be great.
Edit: testproject updated to version "12m" with minor changes
Tags: #FIBAS #Firebase #Firebasedatabase
_______________________________________________
EDIT: The problem is solved here
Remark: USE ALWAYS @DonManfreds MOST RECENT Wrap of the Firebase-Realtime-Database-Library
The testproject is intended to help the community to get started with the Firebase Database as an useful addition to the RAD environment of B4X
It has two different activities to test the two variants of database access:
It is an extended version of the first REST project here.
Unfortunately this testproject is not finished yet:
- The REST part is working fine
- The REALTIME part is in a growing status with a problem in testfibart.writeNewPost(...) as
Picture 1: Key-problem [Solved]
Picture 2: updateChildren problem
Link 1: https://firebase.google.com/docs/reference/android/com/google/firebase/database/DatabaseReference#push()
Link 2: https://github.com/firebase/quickst...base/quickstart/database/NewPostActivity.java
The following prerequisites should be done before the first test:
1. Be sure to have YOUR "google-services.json" file in your B4A project folder
2. Goto service module "Starter" and set up your Firebase parameters in Process_Globals
3. Set up your database RULES in the Firebase console
4. Set up Firebase auth
5. In the "Files"-folder is a file with testdata that you MAY IMPORT in the Firebase console: "fir-quickstartsforandroid-testdata.json"
The testproject is intended to help the community to get started with the Firebase Database as an useful addition to the RAD environment of B4X
It has two different activities to test the two variants of database access:
a) Realtime --> Event driven access to data
b) REST --> "representational state transfer" with commands integrated in an URL
b) REST --> "representational state transfer" with commands integrated in an URL
It is an extended version of the first REST project here.
Unfortunately this testproject is not finished yet:
- The REST part is working fine
- The REALTIME part is in a growing status with a problem in testfibart.writeNewPost(...) as
the push.key function of the library generates not the expected keyfixed since 1.20- and the map for "updateChildren is not accepted
Picture 1: Key-problem [Solved]
Picture 2: updateChildren problem
Link 1: https://firebase.google.com/docs/reference/android/com/google/firebase/database/DatabaseReference#push()
Link 2: https://github.com/firebase/quickst...base/quickstart/database/NewPostActivity.java
The following prerequisites should be done before the first test:
1. Be sure to have YOUR "google-services.json" file in your B4A project folder
2. Goto service module "Starter" and set up your Firebase parameters in Process_Globals
3. Set up your database RULES in the Firebase console
4. Set up Firebase auth
5. In the "Files"-folder is a file with testdata that you MAY IMPORT in the Firebase console: "fir-quickstartsforandroid-testdata.json"
It would be of great benefit to the community if this problem would be solved. So if anyone of you is able and willing to help it would be great.
Edit: testproject updated to version "12m" with minor changes
Tags: #FIBAS #Firebase #Firebasedatabase
Attachments
Last edited: