new WebPush(app, ui)
- Description:
WebPush controller
Parameters:
Name | Type | Description |
---|---|---|
app |
Simplicite.Ajax | Ajax service |
ui |
Simplicite.UI.Engine | Main UI controller |
Methods
init()
- Description:
Init webpush connection
requestPermission()
- Description:
request permission to use WebPush API
service()
- Description:
WebPush service