new Firebase(app, ui)
- Description:
Firebase controller
Parameters:
Name | Type | Description |
---|---|---|
app |
Simplicite.Ajax | Ajax service |
ui |
Simplicite.UI.Engine | Main UI controller |
Methods
init()
- Description:
Init firebase connection
Parameters:
Name | Type | Description |
---|---|---|
data.config |
Object | to init plugin (see FIREBASE_CONFIG) |
data.vapidKey |
string | needed for firebase authent |
refreshToken(token)
- Description:
Refresh a device token on server-side
Parameters:
Name | Type | Description |
---|---|---|
token |
string | new token for the user |
requestPermission()
- Description:
Request user permission to be notified
service(data)
- Description:
Firebase service wrapper
Parameters:
Name | Type | Description | |||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
data |
Object | service data Properties
|
showMessage(m)
- Description:
Display a message
Parameters:
Name | Type | Description | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
m |
Object | message or notification Properties
|