Skip to main content

Firebase

Overview

Firebase Auth and realtime database

Blocks

Events

OnDataChanged

Indicates that the data in the Firebase has changed Launches an event with the tag and value that have been updated.The tag/value can be stringified json based on the value fetched

loading block...

variabletypedescription
tagAnyKey of the path specified
valueAnyvalue of the key specified

Got Value

Indicates that a GetValue request has succeeded. tag/value can be stringified json based on the value fetched

loading block...

variabletypedescription
tagAnyKey of the path specified
valueAnyvalue of the key specified

On Ready

Firebase is ready with the given parameters

loading block...

variabletypedescription
firebaseAnyReturns firebase app context

OnError

Indicates that the communication with the Firebase signaled an error.

loading block...

variabletypedescription
errorAnyContains error messages with stringified json

OnGoogleSignin

Triggers when the Firebase Signin was successful

loading block...

variabletypedescription
ResponseAnyfirebase google signing response

OnOtpSent

Event triggered when firebase sent the otp to your mobile

loading block...

OnOtpVerified

Event for firebase phone number otp verified

loading block...

Methods

initialize

Initialize firebase application with all parameters required for the operation

loading block...

Google signin

Try to let the user sign in with Google

loading block...

Phone number signin

Try to let the user sign in with a Phone Number

loading block...

Input ParamsTypeDescription
RecaptchaComponentInstanceProvide space for recaptcha to show
Mobile NumberStringMobile number to send otp with country code for example: +91xxxxxxxxxx (India)

Otp verify

Enter otp received to your mobile fro the firebase, Note: otp rules are subjected to firebase rules only

loading block...

Input ParamsTypeDescription
otpStringEnter otp received to your mobile

Store Value

hfc

loading block...

Input ParamsTypeDescription
TagAnypath to store data
ValueAnydata to save in firebase

Get Value

used to get data from firebase

loading block...

Input ParamsTypeDescription
TagStringget a value from firebse
value if key not foundStringget value if no data found

Properties

Project Bucket

Accepts: String

set Project Bucket path

loading block...

ApiKey

Accepts: String

set firebase database api key

loading block...

ApiKey

Returns: String

Get firebase database api key

loading block...

database url

Accepts: String

set firebase database url

loading block...

Database Url

Returns: String

Get firebase database url

loading block...

authDomain

Accepts: String

set firebase database authDomain

loading block...

authDomain

Returns: String

Get firebase authDomain

loading block...

projectId

Accepts: String

set firebase database projectId

loading block...

projectId

Returns: String

Get firebase projectId

loading block...

storageBucket

Accepts: String

set firebase database storageBucket

loading block...

storageBucket

Returns: String

Get firebase storageBucket

loading block...

messagingSenderId

Accepts: String

set firebase database messagingSenderId

loading block...

messagingSenderId

Returns: String

Get firebase messagingSenderId

loading block...

appId

Accepts: String

set firebase database appId

loading block...

appId

Returns: String

Get firebase appId

loading block...

measurementId

Accepts: String

set firebase database measurementId

loading block...

measurementId

Returns: String

Get firebase measurementId

loading block...