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...
variable | type | description |
---|---|---|
tag | Any | Key of the path specified |
value | Any | value 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...
variable | type | description |
---|---|---|
tag | Any | Key of the path specified |
value | Any | value of the key specified |
On Ready
Firebase is ready with the given parameters
loading block...
variable | type | description |
---|---|---|
firebase | Any | Returns firebase app context |
OnError
Indicates that the communication with the Firebase signaled an error.
loading block...
variable | type | description |
---|---|---|
error | Any | Contains error messages with stringified json |
OnGoogleSignin
Triggers when the Firebase Signin was successful
loading block...
variable | type | description |
---|---|---|
Response | Any | firebase 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 Params | Type | Description |
---|---|---|
Recaptcha | ComponentInstance | Provide space for recaptcha to show |
Mobile Number | String | Mobile 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 Params | Type | Description |
---|---|---|
otp | String | Enter otp received to your mobile |
Store Value
hfc
loading block...
Input Params | Type | Description |
---|---|---|
Tag | Any | path to store data |
Value | Any | data to save in firebase |
Get Value
used to get data from firebase
loading block...
Input Params | Type | Description |
---|---|---|
Tag | String | get a value from firebse |
value if key not found | String | get 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...