This project is read-only.

Change ringer volume on Call or SMS (with undo)

Rating:        Based on 1 rating
Reviewed:  1 review
Downloads: 26
Change Set: 20380
Released: Jul 16, 2012
Updated: Jul 16, 2012 by gauravnandwani
Dev status: Beta Help Icon

Recommended Download

Source Code ChangeVolumeOnCallOrText.js
source code, 9K, uploaded Jul 16, 2012 - 26 downloads

Release Notes

Change phone ringer (& notification) volume on receiving call/text from defined phone number(s) with optional undo change after call/text

This rule monitors for incoming Call/SMS from particular number(s) and changes the ringer (and notification volume, if linked to ringer volume) profile to normal (or a defined value) & volume to 100% (or a defined value).
If the media volume is changed then it notifies the user and gives option to rollback to previous volume & profile.

Usage:

Change following variables as needed:
  • phoneNumbers - Array of phone numbers which can trigger the volume change.
    • Note: I used array insted of a single number as I was getting input number different format from different SMS applications. E.g. I was getting my number with country code starting with '+' or sometimes without country code & starting with '0'.
    • So keeping this in mind, you'd want to put the trigger phone number in all possible formats you expect or change the phone number condition such that it matches the phone number(s) you desire.
    • Also, you may want to use the array as opportunity for adding multiple people's phone numbers.
  • ringerVolume - Desired ringer volume. Acceptable values: Integer between 0-100
  • ringerMode - Desired ringer mode/profile. Possible values: 'normal', 'vibrate' or 'silent'

Known Problem: Sometimes the message box option to undo volume change does not appear after call completion. Couldn't figure out a reason for it yet.
Please do let me know how it goes for you.

Reviews for this release

     
Excellent. It works well for me. One minor suggestion is to allow phoneNumbers to be blank and it will allow any phone to text in. Also phoneNumbers can be searching %number so % can be anything EG:123456 can be +123456, +1123456 etc
by rosoposo on Jul 19, 2012 at 8:32 AM