Name: Receiving push notifications.
The push notification scenario in the delivery service app involves sending real-time notifications to users through SignalR.
Process pattern: maintenance
Responsible modules: client application, backend service
Platform version: v0.1
Backend service | Process |
---|---|
adminbackend | sendpush |
Backend service | Process |
---|---|
notificationsbackend | sendnotifications |
- From the receiver POV, the app receives and displays the notification on their device, providing relevant information about their order status or other updates.
- From the sender POV, the app sends notifications to users based on their order status or other relevant updates, using SignalR to ensure that notifications are delivered in real-time.
- Getting push notifications from receiver POV:
- Receiver opens the app.
- The app establishes a connection with the SignalR server.
- The server sends push notifications to the app.
- The app displays the notifications to the user.
- Getting push notifications from sender POV:
- Sender opens the app.
- The app establishes a connection with the SignalR server.
- The sender sends a push notification to the server.
- The server sends the notification to the receivers who are subscribed to that event.
The step-by-step execution of the process is identical to the rateorder process (except that the customer does not rate the order, but simply reads the notification):
Object | DTO |
---|---|
Notification | NotificationDTO |
Customer | CustomerDTO |