Debian desktop notifier not launching for ring, only ping?

22 views
Skip to first unread message

Avi Marcus

unread,
Oct 25, 2011, 3:46:20 PM10/25/11
to Android Notifier Users
I set up identical execute strings for ring and ping -
/home/avi/web.sh "deviceId={deviceId}&id={id}&type={type}&title={title}
&data={data}&description={description}"

When I do the "test" it launches the web.sh which just passes it back
to chromium with " around it.
It opens flawlessly.

However, when I try with an incoming call...
a) the notification is inconsistent. Sometimes it takes a few moments,
sometimes it never actually comes. That could be my phones fault..
b) but even when it comes, I don't have the web page open. I did a
echo "$*" >> /tmp/log and I don't see anything being added on the
calls.

Is this a bug?

I have the latest app on the device and the deb package as of now.

If this works.. that will be awesome. I'll have a Screenpop with the
number & name, and it will do a db lookup in a CRM and mark down the
the call in the DB.


p.s. can you make the notifier do an HTTP request? I want to handle it
on a server with php, and setting up a constantly running socket seems
a bit overkill.

Avi Marcus

unread,
Oct 25, 2011, 4:15:24 PM10/25/11
to Android Notifier Users
Oops, I realized there was a debug log I forgot to check.

2011-10-25 21:53:50,400 INFO [NotificationManagerImpl] - Notification received: notificationId=1318374948580769, type=Ping
2011-10-25 21:53:56,919 INFO [OperatingSystemProcessManagerImpl] - Output of command execution: /home/avi/web.sh "deviceId=2306198623256475477&id=1318374948580769&type=PING&title="Phone sent a ping"&data=""&description="Test notification""
Created new window in existing browser session.

2011-10-25 21:53:57,189 INFO [OperatingSystemProcessManagerImpl] - Command [/home/avi/web.sh "deviceId=2306198623256475477&id=1318374948580769&type=PING&title="Phone sent a ping"&data=""&description="Test notification""] exited with code [0]


2011-10-25 21:54:16,926 INFO [NotificationManagerImpl] - Notification received: notificationId=40869545491981671, type=Ring
2011-10-25 21:54:18,045 INFO [OperatingSystemProcessManagerImpl] - Output of command execution: /home/avi/web.sh "deviceId=yyyyy&id=40869545491981671&type=RING&title="Phone is ringing"&data="nnnnnnn"&description="Dad: Allan Marcus - Mobile (nnnnnnn)""
sh: Syntax error: "(" unexpected

2011-10-25 21:54:18,129 INFO [OperatingSystemProcessManagerImpl] - Command [/home/avi/web.sh "deviceId=yyyyy&id=40869545491981671&type=RING&title="Phone is ringing"&data="nnnnnnnn"&description="Dad: Allan Marcus - Mobile (nnnnnnn)""] exited with code [2]

It seems it doesn't like the ( in the description.. it's ok with all the extra " though.

Any ideas? I'm going to leave the description out for now, since I mostly need the numbers.

-Avi Marcus

Reply all
Reply to author
Forward
0 new messages