Projects tigase _server server-core Issues #1535
Add sending push notification on account removal (#1535)
Andrzej Wójcik (Tigase) opened 6 months ago

When account is removed from the server side, client may not be aware of that. It would be beneficial to optionally send notifications on account removal to all client to remove user data or just inform the user that account was removed.

Andrzej Wójcik (Tigase) added "Related" Customers/atom#39 6 months ago
Andrzej Wójcik (Tigase) changed state to 'In Progress' 6 months ago
Previous Value Current Value
Open
In Progress
Andrzej Wójcik (Tigase) added "Related" tigase/_server/tigase-push#58 6 months ago
Referenced from commit 6 months ago
Referenced from commit 6 months ago
Andrzej Wójcik (Tigase) changed state to 'In QA' 6 months ago
Previous Value Current Value
In Progress
In QA
Andrzej Wójcik (Tigase) commented 6 months ago

I've implemented generation of push notification on account removal. This is now supported by unencrypted and encrypted push notifications.

In case of plain notification, server will add element

<event xmlns='http://tigase.org/protocol/account#event' name='account-removed'/>

to the notification sent to push component that will handle forwarding this information, see tigase/_server/tigase-push#58

In case of encrypted notification, server will set type property of the encrypted payload to account-removed. Support for this needs to be added and properly handled in the XMPP client receiving this notification.

Enabling this feature is done by setting send-account-removal-notification property of urn:xmpp:push:0 SessionManager processor, ie.

'sess-man' {
    'urn:xmpp:push:0' () {
        'send-account-removal-notification' = true
    }
}
issue 1 of 1
Type
Task
Priority
Normal
Assignee
Version
none
Sprints
n/a
Customer
n/a
Iterations
Issue Votes (0)
Watchers (3)
Reference
tigase/_server/server-core#1535
Please wait...
Page is in error, reload to recover