Author Topic: Persistent Errors notifications are overly zealous  (Read 2540 times)

StR

  • Hero Member
  • *****
  • Posts: 1558
Persistent Errors notifications are overly zealous
« on: October 21, 2015, 08:41:29 pm »
Kostya, I encountered something in Aquamail behavior that might benefit from some improvement.
When Aquamail cannot sync mail with the server, in a while, it starts issuing notifications about that ("Persistent incoming server errors"). And those notifications are accompanied by [optional] vibration. (I don't remember if it was the default setting or not.) That's great. However, the problem is that it continues doing it after the initial notification.
So, I just had an episode when the server was unreachable large part of the day and overnight. So, the phone kept buzzing (vibrating) every 15 minutes.
Yes, I know about the problem and I cannot do anything until the server is back up. But I don't want to switch the notification off because otherwise I'll forget to turn it back on.

I'd think it would make sense that if there is an uncleared notification, the subsequent notifications for the same account(s) do not produce the vibration.
That can be either done as an option (IIRC, there is a similar option for message notifications: don't create a new one if the previous one is not cleared), or as an additional "choice" in the notification: "do not generate (or mute) subsequent notifications until this one is cleared".

I understand, it is not a frequent situation, - so most people do not get in such a situation. So, it is only when it happens, you realize what would be better...

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Persistent Errors notifications are overly zealous
« Reply #1 on: October 22, 2015, 11:33:36 pm »
With the default settings, there is no sound and no vibration. Just the LED.

App settings -> error notifications.

I'll make a note to investigate why this gets posted more than once.
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

StR

  • Hero Member
  • *****
  • Posts: 1558
Re: Persistent Errors notifications are overly zealous
« Reply #2 on: October 23, 2015, 06:35:25 am »
Alright, it means that I enabled the vibration myself.

Thanks for willing to look into it.
I suspect that the following happens:
I have the notification about synchronization enabled.
During the next synchronization session of Aquamail, it shows the blue rotating icon in the notification, and it looks like that notification removes the notification about the persistent problem with the account. So, then when the synchronization fails, it might be considered as a new problem.
So, if the synchronization notification would not be removing the other notification, Aquamail will probably not post the new notification. That way the annoying repeated vibration can be avoided.
It might require some careful checking that the "persistent errors" notification would be cleared if the sync was successful.

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Persistent Errors notifications are overly zealous
« Reply #3 on: October 25, 2015, 07:08:45 pm »
Yes, that's exactly it -- an account's error notifications are cleared as soon as the app starts syncing / sending -- so if it fails again, it's a new notification, so "play sound just once" isn't getting applied.

I will see if it's possible to clear error notifications a bit later, maybe after initial connect / login.
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/