# Push notifications are displayed for deleted accounts

**URL:** <https://forum.delta.chat/t/push-notifications-are-displayed-for-deleted-accounts/3028>\
**Category:** User Testing\
**Tags:** ios\
**Created:** [April 21, 2024, 4:10pm UTC](https://forum.delta.chat/t/push-notifications-are-displayed-for-deleted-accounts/3028 "2024-04-21T16:10:49Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raiden](https://forum.delta.chat/user_avatar/forum.delta.chat/raiden/32/2544_2.png) [@Raiden](https://forum.delta.chat/u/Raiden)\
**Post date:** [April 21, 2024, 4:10pm UTC](https://forum.delta.chat/t/push-notifications-are-displayed-for-deleted-accounts/3028/1 "2024-04-21T16:10:50Z")

</div>

Hello 👋,  
recently I deleted a chatmail account in DC-iOS, which I continue to use in DC-Desktop.  
Even though the account no longer exists in DC-iOS, push notifications are still being received for it.  
I’m unsure whether I should report this issue as a DC-iOS or Chatmail bug in GitHub.

---

<div class="post-metadata">

**Author:** ![hpk](https://forum.delta.chat/user_avatar/forum.delta.chat/hpk/32/9_2.png) [@hpk](https://forum.delta.chat/u/hpk)\
**Post date:** [April 22, 2024, 8:47am UTC](https://forum.delta.chat/t/push-notifications-are-displayed-for-deleted-accounts/3028/2 "2024-04-22T08:47:04Z")

</div>

probably it’s best to register an issue in the chatmail repo.

How did you notice that push notifications still arrive on ios?

---

<div class="post-metadata">

**Author:** ![link2xt](https://forum.delta.chat/letter_avatar_proxy/v4/letter/l/ee7513/32.png) [@link2xt](https://forum.delta.chat/u/link2xt)\
**Post date:** [April 22, 2024, 8:51am UTC](https://forum.delta.chat/t/push-notifications-are-displayed-for-deleted-accounts/3028/3 "2024-04-22T08:51:53Z")

</div>

You only removed an account, but not Delta Chat from iOS, right?

---

<div class="post-metadata">

**Author:** ![r10s](https://forum.delta.chat/user_avatar/forum.delta.chat/r10s/32/1513_2.png) [@r10s](https://forum.delta.chat/u/r10s)\
**Post date:** [April 22, 2024, 9:54am UTC](https://forum.delta.chat/t/push-notifications-are-displayed-for-deleted-accounts/3028/4 "2024-04-22T09:54:31Z")

</div>

the issue is known and already fixed, but the fix is not released yet.

(for the interested ones: there are some situations where the - on purpose dumb - server thinks a notification is needed but the client knowns better: eg. muted-chats, already-read-on-other-client, account-deleted-on-client.  
the client wants to _not show_ a notification in these situations - however, by default, _not showing push notifications_ is not possible on iOS. but needs a special entitlement we meanwhile got and made use of at [make use of notifications filtering entitlement by r10s · Pull Request #2124 · deltachat/deltachat-ios · GitHub](https://github.com/deltachat/deltachat-ios/pull/2124) - it will be released with the next update)

---

<div class="post-metadata">

**Author:** ![Raiden](https://forum.delta.chat/user_avatar/forum.delta.chat/raiden/32/2544_2.png) [@Raiden](https://forum.delta.chat/u/Raiden)\
**Post date:** [April 22, 2024, 12:08pm UTC](https://forum.delta.chat/t/push-notifications-are-displayed-for-deleted-accounts/3028/5 "2024-04-22T12:08:20Z")

</div>

> [@hpk](#):
>
> How did you notice that push notifications still arrive on iOS?

The notifications appeared on the lock screen. I was wondering why there weren’t any new messages in the app until it became clear that notifications were for the deleted account.

@link2xt Yes, that’s right.

@r10s Thanks for the explanation. 👍  
Do the servers learn that after a certain time push notifications are no longer necessary?  
I ask because notifications should have been displayed again about three hours ago. But this time there weren’t any. I hadn’t accessed the messages in DC desktop until much later.  
Update:  
Now the push notifications are arriving again.

 ![Mitteilungszentrale](https://support.delta.chat/uploads/default/original/2X/e/e1a2e5a1516c93a3c56fd3799da6e194db34ef3f.jpeg)

---

<div class="post-metadata">

**Author:** ![peppa](https://forum.delta.chat/letter_avatar_proxy/v4/letter/p/da6949/32.png) [@peppa](https://forum.delta.chat/u/peppa)\
**Post date:** [April 23, 2024, 2:03pm UTC](https://forum.delta.chat/t/push-notifications-are-displayed-for-deleted-accounts/3028/6 "2024-04-23T14:03:05Z")

</div>

> [@r10s](#):
>
> there are some situations where the - on purpose dumb - server thinks a notification is needed but the client knowns better: eg. muted-chats, already-read-on-other-client, account-deleted-on-client.

It makes sense to have a dumb server for the situations you described but for the situation if you delete an account I don’t see why the server should be dumb and still send notifications to that device. In this situation it seems to me that the “correct” action (in my opinion) is to un-register the device from the server, if this is possible.

Simply hiding the notification is in my opinion only an invisible workaround but not the “correct” solution.

---

<div class="post-metadata">

**Author:** ![r10s](https://forum.delta.chat/user_avatar/forum.delta.chat/r10s/32/1513_2.png) [@r10s](https://forum.delta.chat/u/r10s)\
**Post date:** [April 23, 2024, 2:38pm UTC](https://forum.delta.chat/t/push-notifications-are-displayed-for-deleted-accounts/3028/7 "2024-04-23T14:38:42Z")

</div>

surely, this can be optimised. but we also have to take development resources and maintenance effort into account, so we decided against for now

---

<div class="post-metadata">

**Author:** ![peppa](https://forum.delta.chat/letter_avatar_proxy/v4/letter/p/da6949/32.png) [@peppa](https://forum.delta.chat/u/peppa)\
**Post date:** [June 22, 2024, 2:03pm UTC](https://forum.delta.chat/t/push-notifications-are-displayed-for-deleted-accounts/3028/8 "2024-06-22T14:03:48Z")

</div>

Totaly understand, its good to allocate resources according to priorities!

Can I ask, just to be clear, the current workaround is _only_ for iOS, right? So accounts get deleted properly on all other platforms like Android and Desktop?

---

<div class="post-metadata">

**Author:** ![peppa](https://forum.delta.chat/letter_avatar_proxy/v4/letter/p/da6949/32.png) [@peppa](https://forum.delta.chat/u/peppa)\
**Post date:** [November 27, 2024, 2:55pm UTC](https://forum.delta.chat/t/push-notifications-are-displayed-for-deleted-accounts/3028/9 "2024-11-27T14:55:46Z")

</div>

Does anyone know the answer to this question?

> [@peppa](#):
>
> just to be clear, the current workaround is _only_ for iOS, right? So accounts get deleted properly on all other platforms like Android and Desktop?

---

<div class="post-metadata">

**Author:** ![link2xt](https://forum.delta.chat/letter_avatar_proxy/v4/letter/l/ee7513/32.png) [@link2xt](https://forum.delta.chat/u/link2xt)\
**Post date:** [November 27, 2024, 3:02pm UTC](https://forum.delta.chat/t/push-notifications-are-displayed-for-deleted-accounts/3028/10 "2024-11-27T15:02:23Z")

</div>

On Android if you install `gplay` version and use chatmail account, FCM (Google) push notifications are used similarly to Apple notifications. If you use F-Droid version or if your phone has no Google Services (plain LineageOS or similar) then only IMAP IDLE is used and there is no such problem.

Push notification token eventually expires, so chatmail server will try to notify it via push relay and get back an error, then it deletes it.

---

<div class="post-metadata">

**Author:** ![peppa](https://forum.delta.chat/letter_avatar_proxy/v4/letter/p/da6949/32.png) [@peppa](https://forum.delta.chat/u/peppa)\
**Post date:** [November 27, 2024, 3:34pm UTC](https://forum.delta.chat/t/push-notifications-are-displayed-for-deleted-accounts/3028/11 "2024-11-27T15:34:59Z")

</div>

Thanks for the answer. So after the push notification token expires, there will be nothing which links the server to the client any more?

And will the server keep any information about the account, such as the profile name, after the account has been deleted from the client?

---

<div class="post-metadata">

**Author:** ![link2xt](https://forum.delta.chat/letter_avatar_proxy/v4/letter/l/ee7513/32.png) [@link2xt](https://forum.delta.chat/u/link2xt)\
**Post date:** [November 27, 2024, 3:48pm UTC](https://forum.delta.chat/t/push-notifications-are-displayed-for-deleted-accounts/3028/12 "2024-11-27T15:48:28Z")

</div>

Chatmail server does not store any information about the client except the password hash, stored push notification tokens and incoming (or bcc-copied to self) messages in the mailbox. Display name (profile name) is not stored on the server, it is sent in the messages and is encrypted if you use chats with guaranteed encryption. By default messages are deleted after 20 days and the whole account (including non-expired push notification tokens) is deleted after 90 days, but check the page of your chatmail provider as these settings may be tweaked.

We are also working on the encryption of push notification tokens, so chatmail operators will not be able to see the token or its type (Apple/Google) or check if multiple accounts have the same token:

- [feat: encrypt notification tokens by link2xt · Pull Request #6239 · deltachat/deltachat-core-rust · GitHub](https://github.com/deltachat/deltachat-core-rust/pull/6239)
- [feat: allow to use OpenPGP-encrypted tokens by link2xt · Pull Request #41 · deltachat/notifiers · GitHub](https://github.com/deltachat/notifiers/pull/41)

---

<div class="post-metadata">

**Author:** ![r10s](https://forum.delta.chat/user_avatar/forum.delta.chat/r10s/32/1513_2.png) [@r10s](https://forum.delta.chat/u/r10s)\
**Post date:** [October 6, 2026, 3:20pm UTC](https://forum.delta.chat/t/push-notifications-are-displayed-for-deleted-accounts/3028/13 "2026-10-06T15:20:34Z")

</div>


