Author Topic: How do I disable vibration for messages notifications?  (Read 5825 times)

blueser

  • Newbie
  • *
  • Posts: 1
How do I disable vibration for messages notifications?
« on: November 27, 2013, 08:05:12 pm »
Hi,

everytime I check for new IMAP messages my phone (SGS2 running CM 10.1) vibrates wildly, following some weird patterns. I checked all places I could find and even though "Settings > Message Notifications > Enable notifications" is turned on, "Use Vibration" is turned off. How can I turn this permanently off?

Regards,

Andre

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: How do I disable vibration for messages notifications?
« Reply #1 on: December 02, 2013, 02:19:43 am »
I guess you might have a per-account override for notifications.

Please long press the account -> special settings -> message notifications ("special" means they override app global ones, should I rename to "override settings"?)
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/

lj.longwing

  • Newbie
  • *
  • Posts: 3
Re: How do I disable vibration for messages notifications?
« Reply #2 on: October 24, 2015, 12:06:18 am »
I'm having the same problem and don't have any override settings set, yet it continues to vibrate sometimes, but not every time.

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: How do I disable vibration for messages notifications?
« Reply #3 on: October 25, 2015, 07:03:55 pm »
There is one other setting to check.

When running on Android 5.0 or higher, AquaMail notification settings (both places) have a checkbox to use "priority notifications".

These are "heads up style" notification panels, which show pre-expanded. Although not documented, they only work if I an app requests vibration.

http://developer.android.com/guide/topics/ui/notifiers/notifications.html#Heads-up
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/

TDome

  • Newbie
  • *
  • Posts: 6
Re: How do I disable vibration for messages notifications?
« Reply #4 on: December 01, 2015, 06:54:57 pm »
So to clarify, if I want the "heads up style" notifications (i.e. I must enable "priority notifications to get these...?) then there is no way to disable vibration?  In other words, the heads up style priority notifications *must* vibrate?

Please advise.  Thanks.

(Marshmallow on Nexus 5X)

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: How do I disable vibration for messages notifications?
« Reply #5 on: December 01, 2015, 09:24:00 pm »
Yes, from the app's point of view (when "talking to" Android system code) --

"Please make it a heads-up notification" is ignored by the system unless the notification also has "please vibrate".

It's not mentioned in Android docs, but it is so.
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/

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: How do I disable vibration for messages notifications?
« Reply #6 on: December 01, 2015, 09:48:17 pm »
Looks like in 6.0, heads-up works with a sound and no vibration.

In 5.1, it doesn't -- vibration is required.

I'll adjust my code's logic.
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/

TDome

  • Newbie
  • *
  • Posts: 6
Re: How do I disable vibration for messages notifications?
« Reply #7 on: December 03, 2015, 12:44:33 am »
Hey thanks!  That would be great...to get the heads up notifications without the vibrations.

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: How do I disable vibration for messages notifications?
« Reply #8 on: December 03, 2015, 01:27:11 am »
Since version 1.6.0.1, AquaMail will not request vibration if the notification already has sound.

However:

If you indicated via app settings that you want those "priority" notifications -- and no sound -- then my app's code has no choice but request vibration (on the notification).

Maybe I wasn't clear -- Android can only display those "heads up / priority" notifications if they have either vibration or sound, or else the app's request for "priority look / feel" gets ignored.
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/