B4A Class [B4X] FirebaseRealtimeDatabase

Discussion in 'Additional libraries, classes and official updates' started by nobbi59, Jun 17, 2019.

  1. nobbi59

    nobbi59 Active Member Licensed User

    Hi,

    I created a module that makes it easy to communicate with a Firebase RealtimeDatabase using their REST API.

    The Module is attached to this post and only needs HTTPUtils2(iOS) to work, it should also work in B4A and B4J without a problem.

    Example Code:

    Code:
    Dim DB As FirebaseRealtimeDatabase
    DB.Initialize(
    "DB",Me,"https://[YOUR_PROJECT_ID].firebaseio.com/")
    DB.ReadData(
    "news/today","","news")
    Wait For DB_DataBaseCommunicationComplete(ResponseData As Map, RequestTag As String)
    If ResponseData.IsInitialized Then
       
    'Do your stuff
    Else
       
    Msgbox("Something went wrong!","Oops...")
    End If
    Please Note: This is, by far, not best practice because it ignores a lot of features and advantages of the realtime database but for simple and small projects that just need a basic back-end it is usable and it works.
     

    Attached Files:

  2. Sasuke Sama

    Sasuke Sama Active Member Licensed User

    Finally been waiting for it forever now thank you
     
  3. DonManfred

    DonManfred Expert Licensed User

    fredo, janderkan and Sasuke Sama like this.
  4. Sasuke Sama

    Sasuke Sama Active Member Licensed User

Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice