Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified diagrams/unifiedPushMobile00.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 15 additions & 7 deletions diagrams/unifiedPushMobile00.puml
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
@startuml unifiedPushMobile00
actor User
box "User Device"
participant MobileApp
participant UPMobileApp
end box
box "internet"
box "Podverse"
participant API
database Postgres
participant NtfyMobileApp
end box
box "User Unfied Push Provider"
participant UPServer
end box
end box

User -> MobileApp : opens the app
MobileApp -> User : asks the user to accept notifications
Expand All @@ -20,22 +28,22 @@ API -> API : creates UP salted_topic_id
API -> Postgres : saves the UP hostname+salted_topic_id \nwith ManyToOne to User table \nin the unifiedPushToken table
Postgres -> API : success response
API -> MobileApp : returns the hostname+salted_topic_id
MobileApp -> NtfyMobileApp : registers hostname+salted_topic_id
NtfyMobileApp -> MobileApp : success response??
MobileApp -> UPMobileApp : registers hostname+salted_topic_id
UPMobileApp -> MobileApp : success response??
MobileApp -> User : shows UP notifications enabled message
User -> MobileApp : presses the Test button
MobileApp -> UPServer : posts Test notification body
UPServer -> NtfyMobileApp : receives Test notification
NtfyMobileApp -> User : presents Test notification to user
UPServer -> UPMobileApp : receives Test notification
UPMobileApp -> User : presents Test notification to user
User -> MobileApp : presses the Unregister button
MobileApp -> API : sends authenticated remove unifiedPushToken request
API -> API : confirms the user has permission \nto remove it
API -> Postgres : sends delete unifiedPushToken \nrow request
Postgres -> Postgres : deletes the unifiedPushToken row
Postgres -> API : success response
API -> MobileApp : success response
MobileApp -> NtfyMobileApp : unregisters hostname+salted_topic_id
NtfyMobileApp -> MobileApp : success response??
MobileApp -> UPMobileApp : unregisters hostname+salted_topic_id
UPMobileApp -> MobileApp : success response??
MobileApp -> User : shows unregister successful message

@enduml