Forward Notification from Work Phone to Personal Phone

2,180 views
Skip to first unread message

J Ram `

unread,
Sep 26, 2015, 6:30:32 PM9/26/15
to Tasker
I have a work phone and a personal phone. Sometimes, I forget to take my work phone but always have the personal phone. I do not want to miss the notifications on the work phone. I want the notifications in the work phone to be forwarded to my personal phone. 

I know this can be done. I set the profile to fire up when a notification comes and I tinkered with pushbullet thinking that would be easier but was not successful. I am lost around variables and I guess a variable has to be involved in the process. I am sure you good folks would have it figured out. Can you please help?

Jarod Boyd

unread,
Sep 26, 2015, 7:37:27 PM9/26/15
to Tasker
You could have it when a notification is received, it sends a text message to your other phone with the variable %NTITLE (your last notification).

►► j. ram

unread,
Sep 27, 2015, 1:27:41 AM9/27/15
to tas...@googlegroups.com

Wow that works great. I coupled it with push bullet and I am now able to receive the notification title. But how do I receive the contents of the notification? Is there a variable for the message portion?

On 27 Sep 2015 05:07, "Jarod Boyd" <jarod...@gmail.com> wrote:
You could have it when a notification is received, it sends a text message to your other phone with the variable %NTITLE (your last notification).

--
You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/UZcIj4lNCG8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.
Visit this group at http://groups.google.com/group/tasker.
For more options, visit https://groups.google.com/d/optout.

John Doe

unread,
Sep 27, 2015, 3:37:29 AM9/27/15
to Tasker
For a complete management of notifications you can use the Notification Listener plugin

►► j. ram

unread,
Sep 27, 2015, 4:45:38 AM9/27/15
to tas...@googlegroups.com

Hey John Doe (love the id)! I've heard of notification listener and looked it up on YouTube! So complicated. But if you can suggest how I use it for the purpose stated I'll do it. Thanks

John Doe

unread,
Sep 27, 2015, 4:59:34 AM9/27/15
to Tasker
Create an event profile with the plugin, select the apps you need and the event "Posted". Maybe you can consider to add additional condition to the profile like time context or other conditions. Create a task and use the variables %nltitle, %nltext and so on whatever you want, it doesn't seem too complicated.

►► j. ram

unread,
Sep 27, 2015, 5:26:40 AM9/27/15
to tas...@googlegroups.com

Right so this is what i have done thus far: created a profile and selected event as notification listener. Configured it as posted and chose application as whatsapp. For the task I created at first a pushbullet task and configured it to forward notification to the other phone. I asked it to post %nltitle and %nltext but that doesn't get me the message that I send to whatsapp only heading whatsapp is shown. So I tried putting in all the variables listed in notification listener and sent it as an sms and yet didn't get the message. It just says %nltext where the message is supposed to be. Thoughts?

John Doe

unread,
Sep 27, 2015, 5:29:29 AM9/27/15
to Tasker
Whatsapp notifications can use inbox style, so to read the contents you can read the %nllines() array.

Morgan Young

unread,
Sep 27, 2015, 12:03:17 PM9/27/15
to Tasker
I believe the autonotification plugin from autoapps family of plugins.

►► j. ram

unread,
Sep 27, 2015, 1:32:03 PM9/27/15
to tas...@googlegroups.com
I am totally lost. Again. All i want is that the whatsapp, messages and missed calls notifications of my work phone be forwarded to my personal phone. In this venture, I tried %NTITLE which only got me the heading of the notification but not the contents of the notification. So I tried Notification Listener. This is what I have done so far:

Profile:
Created a profile with Notification Listener. Posted. Apps selected are: Messages, Phone and Whatsapp

Task:
SMS to be sent with variables: included all variables as listed in notification listener including %nltitle %nltext %nlsubtext, %nlsummary etc.

But the results are far from satisfactory. I am not able to come to terms with the fact that there is no such app available cause I thought this would be quite a common requirement. I shall now experiment with autonofication plugin as suggested by Morgan Young. Will post what result are thrown up.

I wish someone would hold my hand through this :)

Thanks



On 27 September 2015 at 21:33, Morgan Young <richard.m....@gmail.com> wrote:
I believe the autonotification plugin from autoapps family of plugins.
--
You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/UZcIj4lNCG8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.
Visit this group at http://groups.google.com/group/tasker.
For more options, visit https://groups.google.com/d/optout.



--
for all my contact details go here: http://contactmonkey.com/sriram
or just use your smart phone to scan this QR:


John Doe

unread,
Sep 27, 2015, 2:07:15 PM9/27/15
to Tasker
Have you read my comment?? WhatsApp notification uses inbox style so you need to read from %nllines() array

►► j. ram

unread,
Sep 27, 2015, 2:10:58 PM9/27/15
to tas...@googlegroups.com
Yes I did read and incorporate it. It works well. No doubt about it. But it does not give me all the details and once there are more than one messages, it send the old message again and adds the new message thereafter with a comma. Some messages are very lengthy that way. How should I overcome this? 

On 27 September 2015 at 23:37, John Doe <playappa...@gmail.com> wrote:
Have you read my comment?? WhatsApp notification uses inbox style so you need to read from %nllines() array
--
You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/UZcIj4lNCG8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.
Visit this group at http://groups.google.com/group/tasker.
For more options, visit https://groups.google.com/d/optout.

►► j. ram

unread,
Sep 27, 2015, 2:20:46 PM9/27/15
to tas...@googlegroups.com
The attached screenshot shows the problem I am having:

When the first notification was sent, it only showed the title i.e. sriram j thalapathy. the message was actually missing.

When the second notification was sent, it showed both the first and the second notifications together. you would see that it is separated by a comma.

When the third notification was sent, it shows all the three separated by commas. 

How do i make it send one message at a time?

Thanks for all the help mate.
unnamed.jpg

John Doe

unread,
Sep 27, 2015, 2:22:39 PM9/27/15
to Tasker
It's hard to say something without description of task/profile however a couple of information: when the same notification is modified the trigger is fired again and WhatsApp add a new line, so you should read only the last entry of %nllines. If you read all, you read even the old messages from the same contact.

►► j. ram

unread,
Sep 27, 2015, 3:03:00 PM9/27/15
to tas...@googlegroups.com
Sorry my mistake. This is how the profile for whatsapp is set up. Oh! by the way I have to mention that I am using pushbullet to forward the notification cause it is free.

Profile:

Event based. 
Plugin: Notification listener. 
Configuration: Notification event: Posted
Selected Apps: Whatsapp

Task:

Plugin: Pushbullet
Configuration: Push a note titled "%nltitle" with the message "%nllines()"

I have set up another profile for missed calls and messages and that is working just fine.

Profile:

Event based. 
Plugin: Notification listener. 
Configuration: Notification event: Posted
Selected Apps: Phone, Messages

Task:

Plugin: Pushbullet
Configuration: Push a note titled "%nltitle" with the message "%nltext"

This is what I have figured thus far. I hope you can improve it.




On 27 September 2015 at 23:52, John Doe <playappa...@gmail.com> wrote:
It's hard to say something without description of task/profile however a couple of information: when the same notification is modified the trigger is fired again and WhatsApp add a new line, so you should read only the last entry of %nllines. If you read all, you read even the old messages from the same contact.
--
You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/UZcIj4lNCG8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.
Visit this group at http://groups.google.com/group/tasker.
For more options, visit https://groups.google.com/d/optout.

►► j. ram

unread,
Sep 28, 2015, 2:40:38 PM9/28/15
to tas...@googlegroups.com
Finally I have a sorta working model for the profiles that I am happy with and i am posting the same in case another user wants it for such a use.

The problem was this: As mentioned above I have two phone: One for work and another for personal use. Often it happens that I may leave the work phone after work but carry the personal phone. This would mean that I would miss the work notifications. These profiles were born out of the requirement to forward the work phone notifications to the personal phone. Now I did not want it on all the time. So I first had to devise a trigger to tell the work phone to start forwarding the notifications.  This I did by setting the trigger as a missed call from my personal phone.  Once tasker recognizes a missed call from my personal it activates two other profiles which actually do the forwarding work. Out of the two profile, the first is for forwarding missed calls and sms. the other profile is for forwarding whatsapp messages. I have established another profile which is triggered by a sms from my personal phone with the words "#callforward" and once my work phone receives a sms with that message from my personal phone, it starts forwarding calls on my work phone to my personal phone.

Another thing I should mention is that I use pushbullet to forward the notifications as it is free. The mobile payment plan that I am under charges me INR 1 for a message! If you find that you can afford text message that is good too but I found that sometimes the work phone breaks the text message into several smaller bits and transmits the to the personal phone which is however still received as a whole.

Now I shall list out the profiles one by one so that i would help the next person who has the same requirement.  Logically the first profile would be trigger the two profiles which actually do the forwarding work. But without creating those two profile first, it would not be intuitive to start triggering them. So the first profile that is dealt with is the profile to forward missed call notifications and sms notifications. 

Things that you need:

Tasker (Duh!)
Pushbullet
Notification Listener

To create profile to forward missed call notifications and SMS notifications:
Profile (I named this profile Forward Calls & Sms)
Event Based - Select Plugin - Notification Listener - Notification event has to be 'posted' and select phone and messages apps
Task
Select Plugin - Pushbullet - configure - here your push bullet devices would be shown - select your personal phone and key in "%nltitle" in the title box and "%nltext"in the message box

To create profile to forward whatsapp notifications
Profile (I named this profile Forward Whatsapp)
Event Based - Select Plugin - Notification Listener - Notification event has to be 'posted' and select whatapp
Task
Select Plugin - Pushbullet - configure - here your push bullet devices would be shown - select your personal phone and key in "%nltitle" in the title box and "%nllines()"in the message box

With these two profiles you have created a monster. Each and every notification that your work phone gets in calls, sms and whatsapp would be forwarded to your personal phone. So we now have to tame the profile and invoke them only when required. For the time being turn off both the profiles. 

To enable forwarding of the missed call & SMS notification profile and forwarding whatsapp profile 
Profile
Event based
Phone - Missed Call
Select your personal phone from contacts by tapping on the magnifier
Task
1st task - Select Tasker - Profile Status - search out the profile by tapping on the magnified. I had named it as "Forward Calls & SMS" and i selected that with toggle enabled.
2nd task - Select Tasker - Profile Status - search out the profile by tapping on the magnified. I had named it as "Forward Whatsapp" and i selected that with toggle enabled.
[The effect of selecting it to toggle is that the profiles are activated once on a missed call and deactivated on another missed call]

In case you dont want any notifications but only want the call to be forwarded from your work phone to your personal phone, the following profile and task would suffice:

To forward only calls to your personal phone from work phone:
Profile
Event based
Received Text - Select SMS - Sender can be set by finding your stored personal mobile number using the magnified button - content can be set as #callforward
Task
Phone - Call - input **21*xxxxxxxxx# - where x is your personal mobile number.

Hope someone finds this helpful. My thanks to Jarod Boyd, John Doe and Morgan Young for showing me the path.
Reply all
Reply to author
Forward
0 new messages