Notification Service - rettersoft/rbs-docs GitHub Wiki
RBS Notification Service
Actions:
- rbs.notification.request.REGISTER
input: {
token: string, //FCM token
channel: Channel // android, ios or web
}
response: null // Returns bodyless response check statusCode
- rbs.notification.request.SEND
input: {
userId: string,
notification: {
title: string,
message: string?, // Optional
deeplink: string?
},
channel: Channel? // Optional, dont set for all channels
}
response: {
success: number,
failure: number
}
- rbs.notification.request.GET
input: {
notificationId: string
}
response: Notification
- rbs.notification.request.REMOVE
input: {
notificationId: string
}
response: {
isDeleted: boolean
}
- rbs.notification.request.LIST
response: Notification[]
Models
Channel
'android' | 'ios' | 'web'
Notification
{
id: string,
title: string,
message: string?,
deeplink: string?,
isRead: boolean,
createdAt: number // timestamp
}