Notification Integration Guide¶
The Notification Service allows the user to manage some notification settings.
It also exposes endpoints for mobile devices to register/unregister for push notifications.
The user notification settings endpoints are intended for users to use directly, mostly from the user preference page.
Tip
The Swagger API documentation is always up-to-date and lets you try out any query with your user session or an API-key.
Notification settings¶
Currently, the notification settings endpoints provide notification settings for the mobile app.
Over time, more notification settings endpoints will be added here.
Fetch case notification settings¶
The /notifications/v1/settings/case endpoint returns case notification
settings for the current user.
Currently, it only contains app notification settings.
1 | |
This returns case notification settings, currently only for the mobile app.
1 2 3 4 5 6 7 8 9 10 11 12 | |
Tip
You can check the Swagger API documentation for a more detailed description of the endpoint and the values that can be used in the Json object.
Update case notification settings for mobile¶
The /notifications/v1/settings/case/app endpoint allows the current
user to change notification settings for the mobile app:
1 2 3 4 5 6 7 | |
The result from this endpoint is the same structure as when fetching settings using the endpoint above.
Tip
The Swagger API documentation is always up-to-date and lets you try out any query with your user session or an API-key.
Notification Devices¶
A notification device is an iPhone or Android mobile with the Argus
Mobile app installed.
The endpoints under /notifications/v1/device provide a way for a
device to bind/unbind a user to a device for push notifications.
These endpoints are mostly intended for use by the mobile app, but can also be used to list/remove devices from the current user.
List registered devices¶
List registered devices on the current user:
1 | |
This returns a list of devices:
1 2 3 4 5 6 7 8 9 10 11 | |
Tip
The Swagger API documentation is always up-to-date and lets you try out any query with your user session or an API-key.
Register new device¶
To bind a new device to the current user, the device must first connect
to Google Firebase and retrieve a device token.
Then the device must register the token to the current user:
1 2 3 4 5 | |
The result from this endpoint is the same datamodel as returned when listing registered devices above.
Tip
The Swagger API documentation is always up-to-date and lets you try out any query with your user session or an API-key.
Remove a device¶
Removing/unbinding a device means that Argus will no longer send push notifications to this device.
To unbind a device from the current user, use the ID returned by the list endpoint:
1 | |
Tip
The Swagger API documentation is always up-to-date and lets you try out any query with your user session or an API-key.
Notification test endpoints¶
The endpoints under /notifications/v1/notification are for
debugging/internal use only, and are not usable by users.