This module modify the way WhatsApp push notifications to make it compatible with CyanogenMod's Quiet Hours and/or other Quiet Hours apps or Xposed Modules.
If you don't have any Quiet Hour app, it doesn't matter, this module provides you with a custom Quiet Hours settings.
It also add the "Mute All" feature, which mute all WhatsApp notifications for a period of time (1 hour, 4 hours, 8 hours).
minSdkVersion 14 (Android 4.0+)
DO NOT UPDATE TO THIS VERSION IF YOUR ARE NOT IN WHATSAPP VERSION WITH MATERIAL DESIGN
-no known issue so far, please report.
*support new WhatsApp UI (Callings)
*quickfix for callings (calling ringer not being played untill "call
missed" notification) "Contact ringtone" under "Calls" in WhatsApp
settings must be unchecked for this to work
+added german translation (thanks @warci)
*fixed bug where module was crashing in some devices while trying to get the NotificationManager's instance
*Fixed: On Custom quiet hours and/or on "Mute all" state voice messages are not played.
*Fixed: Issue with new version of WhatsApp where the "send message" sound is played as a notification
+added: "Mute all" feature, it works like WhatsApp's mute group feature but for all notifications, Contacts, Groups, Broadcasts, etc.
*fixed: quiet hours doesn't work if you have set in whatsapp settings to use contact ringtone
*fixed: all notifications will sound with the "notification tone" set on whatsapp, even group or broadcast notifications
*fixed: notification sound is played for muted groups
*fixed: other notification issues
*fixed: voice messages not playing
*On Custom quiet hours and/or on "Mute all" state voice messages are not played]
*fixed annoying bug where clicking on a notification sometimes it didn't open whatsapp
*fixed possibility of losing some notifications
*quiet hours doesn't work if you have set in whatsapp settings to use contact ringtone
*all notifications will sound with the "notification tone" set on whatsapp, even group or broadcast notifications
*notification sound is played for muted groups
It won't work if you have set in whatsapp settings to use contact ringtone
*now fully supporting CM's built-in quiet hours
*now supporting other quiet hours apps or Xposed Modules that mute notifications
+added Spanish translation
*changed settings layout to look more like Whatsapp theme
*increased min api level, now is 14 (Android 4.0+)
*If you reboot your device while having a Whatsapp notification in your notification bar, that notification won't appear again in your notification bar after rebooting.
*Notifications for muted groups doesn't appear in notifications bar.
*Sometimes pressing on a notification don't take you to whatsapp.
Beware: It is possible that you lose some of Whatsapp notifications, it shouldn't happen, it never happened to me, but the possibility exist. If you encounter this issue, please report
*Fixed bug: Pressing the "new chat" button in WhatsApp opens WhatsApp Quiet Hours settings.
*Pressing the "new chat" button in WhatsApp opens WhatsApp Quiet Hours settings.
Q: I use [CM's quiet hours or Other app for quiet hours]. How do I configure Whatsapp Quiet Hours to use [CM's quiet hours or Other app for quiet hours] settings?
A: Just check that you are NOT using "Custom Quiet Hours" in WQH settings.
Q: I don't have any Quiet Hours app. Can I still use Whatsapp Quiet Hours?
A: Yes, go to WQH settings and check the box "Use custom quiet hours", choose a time range and whether you want to mute notifications, disable vibrations and/or notification light.
Q: What would happen if I have a quiet hours app and I'm also using WQH custom quiet hours?
A: It would work kind like the logical operator OR. If any of the variables (notification sound, vibration, notification light) is disable in any of the QH systems, then it will be disable.
A OR B Result
Q: How does WQH work?
A: In WhatsApp, the notification sound is played with a MediaPlayer instead of being played with the notification API, that's why QH can't mute it. So this module work like this: when a notification comes, it save a reference of the notification in a queue and it don't let the notification to be pushed. The notification in the queue wait around two seconds for a sound, if a MediaPlayer sound is trying to be played it mute the MediaPlayer and put the sound in the queued notification, so the sound is played with the notification API instead of the MediaPlayer.