AquaMail Forum

English - Android => General Discussion => Topic started by: blueser on November 27, 2013, 08:05:12 pm

Title: How do I disable vibration for messages notifications?
Post by: blueser 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
Title: Re: How do I disable vibration for messages notifications?
Post by: Kostya Vasilyev 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"?)
Title: Re: How do I disable vibration for messages notifications?
Post by: lj.longwing 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.
Title: Re: How do I disable vibration for messages notifications?
Post by: Kostya Vasilyev 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
Title: Re: How do I disable vibration for messages notifications?
Post by: TDome 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)
Title: Re: How do I disable vibration for messages notifications?
Post by: Kostya Vasilyev 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.
Title: Re: How do I disable vibration for messages notifications?
Post by: Kostya Vasilyev 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.
Title: Re: How do I disable vibration for messages notifications?
Post by: TDome on December 03, 2015, 12:44:33 am
Hey thanks!  That would be great...to get the heads up notifications without the vibrations.
Title: Re: How do I disable vibration for messages notifications?
Post by: Kostya Vasilyev 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.