Push token¶
API path: /user/session/push_token
.
bind¶
Binds Push token with current session.
parameters¶
- application (string) – Application ID, for now it's "navixy_iphone_viewer" or "navixy_android_viewer"
- token (string) – Push token
- category_filter (string) – Push notifications category filter, default is *
response¶
{ "success": true }
Using category_filter
you can filter out unwanted notifications categories.
If category_filter
equals to *
this means all categories are allowed.
Delimited with comma list means that allowed only listed categories i.e. chat_message,history_rule
.
Prepended with minus and delimited with comma list means that all categories are allowed except given i.e. – history_task,history_rule
.
Possible categories:¶
chat_message
– notification about new chat messagehistory_rule
– notifications related to rule actuationhistory_task
– notifications related to taskshistory_info
– service informationhistory_service_task
– service task notificationshistory_work_status
– work status notifications
delete¶
Deletes push token that bound with the session.
response¶
{ "success": true }
errors¶
General types only.
Last update: October 23, 2020