FORUMS
Remove All Ads from XDA

[MOD][XPOSED]Whatsapp Quiet Hours

116 posts
Thanks Meter: 102
 
By pbosio, Senior Member on 20th April 2014, 12:38 AM
Post Reply Email Thread
Introduction


This Module adds the following features to WhatsApp:
+Mute All (mutes all whatsapp's notifications for a period of time)
+Custom Quiet Hours (set quiet hours to whatsapp)
+Whitelist feature: Avoid certain contacts' notifications to be mute (Experimental stage for KK devices)

Notes:
Devices running LP: This module is no longer necessary any more if you only used it to fix not being able to mute WhatsApp's sounds with your Quiet Hours app or CM Quiet Hours feature. WhatsApp is now playing it notification's sounds with the proper API.

Whitelist: Whitelist will make a copy of your whatsapp's contact list into your sdcard (sdcard/.whatsappquiethours/contacts.json) so if you are worry about that, then, do not enable it... (there is an option in preferences screen to delete this file if you just want to try it once)

Permissions: READ/WRITE_EXTERNAL_STORAGE are needed for Whitelist (check whitelist's note)



Requirements:
Xposed Framework
minSdkVersion 14 (Android 4.0+)

1.5
Quote:

Changelog:
*better way used for checking if sender is whitelisted
*for LP+ devices: added option to choose which method use to implement
whitlist (force led/vibration and use music's stream for sound or set
the notification category as an alarm to bypass Android's interruption
system/zen mode)
*enabled whitelist for devices all compatible devices (needs testing on KK devices)

Changelogs

1.4.8
Quote:

Changelog:
*changed Mute All to show slider instead of checkboxs to choose mute
time
*new permissions: READ/WRITE_EXTERNAL_STORAGE
*modified mod's settings actionbar to look more like whatsapp's actionbar
+added Whitelist feature for LP devices (needs testing)
ONLY for WhatsApp version 2.12.194 or above

1.4.7
Quote:

Changelog:
+reverted some code to fix module on KK devices

1.4.6
Quote:

Changelog:
+fixes for WhatsApp version 2.12.115
install only if you are in this version or above
Known issues:
-Not working on KK.

1.4.5
Quote:

Changelog:
+running on lollipop 5.1

Known issues:
-Not working on KK.

1.4.4
Quote:

Changelog:
DO NOT UPDATE TO THIS VERSION IF YOUR ARE NOT IN WHATSAPP VERSION WITH MATERIAL DESIGN

Known issues:
-no known issue so far, please report.


1.4.3
Quote:

Changelog:
*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



1.4.2
Quote:

Changelog:
+added german translation (thanks @warci)
*fixed bug where module was crashing in some devices while trying to get the NotificationManager's instance



1.4.1
Quote:

Changelog:
*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



1.4
Quote:

Changelog:
+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

Known issues:
*On Custom quiet hours and/or on "Mute all" state voice messages are not played]


1.3
Quote:

Changelog:
*fixed annoying bug where clicking on a notification sometimes it didn't open whatsapp
*fixed possibility of losing some notifications

Known issues:
*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

Note:
It won't work if you have set in whatsapp settings to use contact ringtone

1.2
Quote:

Changelog:
*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+)

Known issues:
*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.

Note:
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

1.1
Quote:

Changelog:
*Fixed bug: Pressing the "new chat" button in WhatsApp opens WhatsApp Quiet Hours settings.

Known issues:
???

1.0
Quote:

Known issues:
*Pressing the "new chat" button in WhatsApp opens WhatsApp Quiet Hours settings.



Source Code:
https://github.com/pbosio/WhatsappQuietHours

Download:
http://repo.xposed.info/module/ar.pb...sappquiethours

Screenshots:

Attached Thumbnails
Click image for larger version

Name:	Screenshot_2014-04-19-19-21-56.png
Views:	23539
Size:	82.3 KB
ID:	2696967   Click image for larger version

Name:	Screenshot_2014-04-19-19-22-08.png
Views:	23556
Size:	78.0 KB
ID:	2696968   Click image for larger version

Name:	Screenshot_2014-04-19-19-23-59.png
Views:	23392
Size:	72.1 KB
ID:	2696969   Click image for larger version

Name:	1.png
Views:	22539
Size:	83.7 KB
ID:	2722164   Click image for larger version

Name:	2.png
Views:	22314
Size:	66.3 KB
ID:	2722165   Click image for larger version

Name:	3.png
Views:	22280
Size:	56.3 KB
ID:	2722166  
The Following 20 Users Say Thank You to pbosio For This Useful Post: [ View ] Gift pbosio Ad-Free
 
 
20th April 2014, 12:53 AM |#2  
Jrhoop's Avatar
Senior Member
Thanks Meter: 300
 
More
Quick feedback - Had to install twice for some funny reason. Xposed must have been having a funny turn. Intergrates well with whatsapp+ and Danvdh 4.4.2 rom.
Now just to wait for somebody to whatsapp me at 1am
20th April 2014, 08:48 AM |#3  
matrixzone's Avatar
Senior Member
Thanks Meter: 3,595
 
Donate to Me
More
Thanks
20th April 2014, 05:20 PM |#4  
momomok's Avatar
Senior Member
Flag Hong Kong
Thanks Meter: 412
 
More
Does it support GravityBox's implementation of QuietHour?

Sent from my Nexus 5
20th April 2014, 06:59 PM |#5  
Senior Member
Thanks Meter: 36
 
More
Spiffy app, kudos

If you're taking requests, I'd dearly love for an option to disable notifications from group chats (outside quite hours). I use a MotoX-ish active display app and it's a nuisance to see my phone wake up every time someone posts a cat pic.
20th April 2014, 08:19 PM |#6  
OP Senior Member
Flag Buenos Aires
Thanks Meter: 102
 
Donate to Me
More
Quote:
Originally Posted by Jrhoop

Quick feedback - Had to install twice for some funny reason. Xposed must have been having a funny turn.

That is really strange, I can't imagine why that can be happening

Quote:
Originally Posted by momomok

Does it support GravityBox's implementation of QuietHour?

Sent from my Nexus 5

No it doesn't, GravityBox's QuietHours aren't working for whatsapp?
If you can confirm me that, then I will give it a try, I imagine it shouldn't be too difficult to add support for GravityBox's QuietHours.
20th April 2014, 09:19 PM |#7  
hamzahrmalik's Avatar
Senior Member
Thanks Meter: 2,030
 
Donate to Me
More
Quote:
Originally Posted by pbosio

Introduction

This module use CyanogenMods Quiet Hours settings to enforce quiet hours to Whatsapp.
If you are on another ROM, don't worry, you can set a custom time range for quiet hours.
If you ar on CM and you want to use a custom time range for whatsapp, you can do that too.


Requirements:
Xposed Framework

Screenshots:



Source Code:
https://github.com/pbosio/WhatsappQuietHours

Download:
http://repo.xposed.info/module/ar.pb...sappquiethours

Can we just have it to go quiet for some time, rather than a fixed time every day? Like the built in function for group chats?
20th April 2014, 09:51 PM |#8  
OP Senior Member
Flag Buenos Aires
Thanks Meter: 102
 
Donate to Me
More
Quote:
Originally Posted by hamzahrmalik

Can we just have it to go quiet for some time, rather than a fixed time every day? Like the built in function for group chats?

Do you mean something like "Mute 8 hours","Mute 1 day" kind of thing for all whatsapp notifications?
20th April 2014, 10:06 PM |#9  
hamzahrmalik's Avatar
Senior Member
Thanks Meter: 2,030
 
Donate to Me
More
Quote:
Originally Posted by pbosio

Do you mean something like "Mute 8 hours","Mute 1 day" kind of thing for all whatsapp notifications?

Yep


Sent from my iPod touch using Tapatalk
21st April 2014, 08:22 AM |#10  
momomok's Avatar
Senior Member
Flag Hong Kong
Thanks Meter: 412
 
More
Quote:
Originally Posted by pbosio

No it doesn't, GravityBox's QuietHours aren't working for whatsapp?
If you can confirm me that, then I will give it a try, I imagine it shouldn't be too difficult to add support for GravityBox's QuietHours.

Just tested, no, GB's QH has no effect on whatsapp
(whatsapp not using std way to play notification sound as I read somewhere online)
21st April 2014, 10:57 AM |#11  
Senior Member
Thanks Meter: 198
 
More
Pressing the "new chat" button in WhatsApp opens WhatsApp Quiet Hours settings. Anybody else?
The Following User Says Thank You to Smultie For This Useful Post: [ View ] Gift Smultie Ad-Free
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes