Missed Notification Reminder

Introduction

Note: some of these profiles require that Tasker's accessibility service is enabled. To enable it, go to Settings > Accessibility and make sure the check box next to Tasker is checked.

This is a set of profiles that work in unison to provide a single repeating audible/vibrating reminder for missed calls, Google Voice (voicemail/sms), Messaging (sms/mms), and Gmail. The reminder will sound/vibrate every 10 minutes until all monitored notifications are cleared.

When the notification reminder is active, a notification will appear in the notification bar with the title Notification Reminder. You can tap this notification to temporarily stop the reminders until another monitored notification appears (i.e. from a missed call, etc). This notification will clear on its own once all monitored notifications have been cleared.

It's possible for some notifications to be cleared without doing anything on your device. Reading your Gmail on a computer or another device will cause the Gmail notification to clear. If this happens, the reminders will persist. Tap on the Notification Reminder notification in the notification bar to stop the reminders.

Note: I have so far been unable to figure out how to detect (using Tasker) the arrival or clearing of voicemail notification from the carrier, so this is not included (yet?).

How you will be reminded

Silent Mode ON

If Silent Mode is set to ON, there will be no sound or vibration.

Silent Mode VIBRATE

If Silent Mode is set to VIBRATE, only the following vibrations will be produced:

Display OFF - two vibrations in rapid succession
Display ON - a single, short vibration

Silent Mode OFF

If Silent Mode is OFF, the above vibrations will be produced, and the following sounds will be produced:

Display OFF - the selected notification sound
Display ON - no sound

Using these profiles

Downloading to your computer

  1. You'll need to have Tasker 1.0.10 or later installed
  2. Click on the link below to download a ZIP file containing the necessary profiles and task.
  3. Unzip the files to the memory card on your device.
  4. Import each profile and task using Tasker's import facility.

Download link: MissedNotificationReminder.zip

Note: You can also download individual profiles/tasks by clicking on the links below.

Included Profiles

Required base profiles
Missed Notification Reminder
Missed Notification Clear - All
(stops all reminders without clearing original notifications)
Missed Notification Clear - All
(stops all reminders when you press "clear" in the notification bar)

Optional profile for missed calls
Missed Notification Set/Clear - Calls

Optional profiles for Google Voice
Missed Notification Set - Google Voice
Missed Notification Clear - Google Voice

Optional profile for Messaging
Missed Notification Set - Messaging

Optional profiles for Gmail
Missed Notification Set - Gmail
Missed Notification Clear - Gmail

Optional profiles for Calendar
Missed Notification Set - Calendar
Missed Notification Clear - Calendar
(stops calendar reminders when you press "Dismiss all" or "Snooze all" in the calendar notification)
Missed Notification Clear - Calendar
(stops calendar reminders when you view an event in the calendar)

Included Task (required)

Things you'll want to check or change

You can limit when/where/how notification reminders are active by adding whatever contexts you like to the Missed Notification Reminder profile. For example, add a Time context so they are only active from 8:00am to 10:00pm, or a Day context so they are only active Monday through Friday, or Location context so they are only active while you're at work.

All other changes you're likely to want/need to make are in the Notification Reminder task.

Sound: action 7 - Notify Sound. This points to a built-in ringtone on my Droid. Select a file that exists on your device, or leave blank to use the default notification sound.

Vibration Patterns: actions 4 & 5 - Vibrate Pattern. Change the pattern if you like, or eliminate them completely.

Notification Reminder Icon: actions 7 & 8 - Notify Sound and Notify. Change as desired.

Reminder Frequency: action 1 - Wait.

Additional information

Variables used:

%MISNOT - this is where we keep track of any uncleared reminders
%MNTMP (and Variable Split variations) - used temporarily for binary math simulation

Each notification type is stored as a separate bit in the %MISNOT variable. If the bit is set, there is an uncleared notification for the corresponding app. If the bit is not set, there are no uncleared notifications for the corresponding app. Since we can't do binary math in Tasker, it is sumulated using the decimal values of the corresponding bits. Each app/notification is assigned a decimal value as follows:

1 - Missed Calls
2 - Google Voice (Voicemail/SMS)
4 - Messaging (SMS/MMS)
8 - Gmail
16 - Google Calendar

If you want to add monitors for other apps, just remember to choose a value that is a power of 2 (1, 2, 4, 8, 16, 32, 64, etc.).

Notification Reminder Profile

This is included as part of the download, but is shown here for your reference:

Profile: Missed Notification Reminder

State: Variable Value [ Name:%MISNOT Value:Maths:Greater Than 0 ]

Enter:

A1: Notify [ Title:Notification Reminder Text: Icon:<icon> Number:0 Permanent:Off ]
A2: Perform Task [ Name:Notification Reminder Stop:Off Priority:5 ]

Exit:

A1: Notify Cancel [ Title:Notification Reminder Warn Not Exist:Off ]

Notification Reminder Task

This is included as part of the download, but is shown here for your reference:

A1: Wait [ MS:0 Seconds:0 Minutes:10 Hours:0 Days:0 ]
A2: Stop If [ %PACTIVE !~ *missed notification reminder* ]
A3: If If [ %SILENT !~ on ]
A4: Vibrate Pattern [ Pattern:10,300,200,300 ] If [ %SCREEN ~ off ]
A5: Vibrate Pattern [ Pattern:10,70 ] If [ %SCREEN ~ on ]
A6: End If
A7: Notify Sound [ Title:Notification Reminder Text: Icon:<icon> Number:0 Sound File:../../system/media/audio/notifications/F1_New_MMS.ogg ] If [ %SCREEN ~ off ]
A8: Notify [ Title:Notification Reminder Text: Icon:<icon> Number:0 Permanent:Off ] If [ %SCREEN ~ on ]
A9: Goto Action [ Number:1 ]

Sample profile to set a reminder flag

This sample profile is for Gmail notifications. Portions specific to Gmail are bold.

Profile: Missed Notification Set - Gmail

Event: Notification [ Owner App:Gmail Title: ]

Enter:

A1: Variable Set [ Name:%MNTMP To:%MISNOT / 8 Do Maths:On Append:Off ]
A2: Variable Split [ Name:%MNTMP Splitter:. Delete Base:Off ]
A3: Variable Add [ Name:%MISNOT Value:8 Wrap Around:0 ] If [ %MNTMP1 Is Even ]
A4: Variable Join [ Name:%MNTMP Joiner:. Delete Parts:On ]
A5: Variable Clear [ Name:%MNTMP ]

Sample profile to clear a reminder flag

This sample profile is for Gmail notifications. Portions specific to Gmail are bold.

Profile: Missed Notification Clear - Gmail

Application: Gmail

Enter:

A1: Variable Set [ Name:%MNTMP To:%MISNOT / 8 Do Maths:On Append:Off ]
A2: Variable Split [ Name:%MNTMP Splitter:. Delete Base:Off ]
A3: Variable Subtract [ Name:%MISNOT Value:8 ] If [ %MNTMP1 Is Odd ]
A4: Variable Join [ Name:%MNTMP Joiner:. Delete Parts:On ]
A5: Variable Clear [ Name:%MNTMP ]

Revisions

Oct. 20, 2010:

  1. Changed Notification Reminder task to stop based on %PACTIVE variable rather than %MISNOT variable. Now the Notification Reminder task will only stop when the Missed Notification Reminder profile is inactive. This is what allows you to add other contexts to the Missed Notification Reminder profile to limit when reminders are active.
  2. Changed collision handling in Notification Reminder task to Abort Existing Task. Previously, if all notifications were cleared, and a new monitored notification appeared within the repeat frequency of the reminder, the reminder would sound/vibrate at the frequency interval after the last reminder. Now the frequency interval starts with the newly appearing notification. (Under default settings, if you cleared all notifications 8 minutes after the last reminder, and a new notification appeared a minute later, the reminder would sound/vibrate after 1 minute - 10 minutes after the previous reminder - instead of 10 minutes after the new notification)

Nov. 28, 2010:

  1. Changed messaging related profiles to use Tasker's new Unread Text context.
  2. Added profiles to handle notifications from Google Calendar
  3. Added profile to stop notifications if you press Clear in the notification bar

Questions?

If you have any questions, join us in the forums.

-UncleMike

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License