Firebase
Kubemq firebase target Connector
Kubemq gcp-firebase target connector allows services using kubemq server to access google firebase server.
Prerequisites
The following required to run the gcp-firebase target connector:
kubemq cluster
gcp-firebase set up
kubemq-source deployment
Configuration
firebase target connector configuration properties:
Properties Key
Required
Description
Example
project_id
yes
gcp firebase project_id
"/myproject"
credentials
yes
gcp credentials files
"<google json credentials"
db_client
no
initialize db client if true
true/false
db_url
no
gcp db full path
<google db url"
auth_client
no
initialize auth client if true
true/false
messaging_client
no
initialize messaging client
true/false
defaultmsg
no
default Firebase Cloud Messaging
json
defaultmultimsg
no
default Firebase Cloud MulticastMessage
json
defaultmsg - can be used for common message settings defaultmultimsg - can be used for common message settings
Example:
Usage
DB:
Get DB
Get DB metadata setting:
Metadata Key
Required
Description
Possible values
method
yes
method type
get_db
ref_path
yes
ref path for the data
valid string
child_ref
no
path for child ref data
valid string
Example:
Set DB
Set DB metadata setting:
Metadata Key
Required
Description
Possible values
method
yes
method type
set_db
ref_path
yes
ref path for the data
valid string
child_ref
no
path for child ref data
valid string
Example:
Update DB
Update DB metadata setting:
Metadata Key
Required
Description
Possible values
method
yes
method type
update_db
ref_path
yes
ref path for the data
valid string
child_ref
no
path for child ref data
valid string
Example:
Delete DB
Kubemq firebase target Connector
Kubemq gcp-firebase target connector allows services using kubemq server to access google firebase server.
Prerequisites
The following required to run the gcp-firebase target connector:
kubemq cluster
gcp-firebase set up
kubemq-source deployment
Configuration
firebase target connector configuration properties:
Properties Key
Required
Description
Example
project_id
yes
gcp firebase project_id
"/myproject"
credentials
yes
gcp credentials files
"<google json credentials"
db_client
no
initialize db client if true
true/false
db_url
no
gcp db full path
<google db url"
auth_client
no
initialize auth client if true
true/false
messaging_client
no
initialize messaging client
true/false
defaultmsg
no
default Firebase Cloud Messaging
json
defaultmultimsg
no
default Firebase Cloud MulticastMessage
json
defaultmsg - can be used for common message settings defaultmultimsg - can be used for common message settings
Example:
Usage
DB:
Get DB
Get DB metadata setting:
Metadata Key
Required
Description
Possible values
method
yes
method type
get_db
ref_path
yes
ref path for the data
valid string
child_ref
no
path for child ref data
valid string
Example:
Set DB
Set DB metadata setting:
Metadata Key
Required
Description
Possible values
method
yes
method type
set_db
ref_path
yes
ref path for the data
valid string
child_ref
no
path for child ref data
valid string
Example:
Update DB
Update DB metadata setting:
Metadata Key
Required
Description
Possible values
method
yes
method type
update_db
ref_path
yes
ref path for the data
valid string
child_ref
no
path for child ref data
valid string
Example:
Delete DB
Delete DB metadata setting:
Metadata Key
Required
Description
Possible values
method
yes
method type
delete_db
ref_path
yes
ref path for the data
valid string
child_ref
no
path for child ref data
valid string
Example:
User:
Create User
Create User metadata setting:
Metadata Key
Required
Description
Possible values
method
yes
method type
create_user
Example:
Retrieve User
Retrieve User metadata setting:
Metadata Key
Required
Description
Possible values
method
yes
method type
retrieve_user
retrieve_by
yes
type of retrieval
by_email ,by_uid,by_phone
uid
no
valid unique string
string
phone
no
valid phone number
string
no
valid email
string
Example:
Delete User
Delete User metadata setting:
Metadata Key
Required
Description
Possible values
method
yes
method type
delete_user
uid
yes
valid unique string
string
Example:
Delete Multiple Users
Delete Multiple Users metadata setting:
Metadata Key
Required
Description
Possible values
method
yes
method type
delete_multiple_users
Example:
Update User
Update User metadata setting:
Metadata Key
Required
Description
Possible values
method
yes
method type
update_user
uid
yes
valid unique string
string
Example:
List Users
List User metadata setting:
Metadata Key
Required
Description
Possible values
method
yes
method type
list_users
Example:
Token:
Custom Token
Custom Token metadata setting:
Metadata Key
Required
Description
Possible values
method
yes
method type
custom_token
uid
yes
valid unique string
string
Example:
Verify Token
Verify Token metadata setting:
Metadata Key
Required
Description
Possible values
method
yes
method type
verify_token
uid
yes
valid unique string
string
Example:
Messaging:
Firebase messaging will send a FCM message or send the message to multiple devices.
Send Message
Create User metadata setting:
Metadata Key
Required
Description
Possible values
method
yes
method type
send_message/send_multi
Example: send_message
Example: send_multi
Last updated