View Single Post
  #42 (permalink)  
Old 08-01-2008, 03:03 AM
bhuga bhuga is offline
What's Jailbreak?
 
Join Date: Jul 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts

Quote:
while test 1
do
n=` /private/var/mobile/Library/SMS/sms.db 'select count(*) from message where flags=0'`;
noc=` /private/var/mobile/Library/SMS/sms.db 'select address from message where address=5151212'`;
if [ "" -gt 0 ] && [ "" = 51511212 ]
then
&
fi
sleep 10
done

Better ways of doing this? Please share...
Yes, as I posted, what you want is:
Code:
n=`sql /private/var/mobile/Library/SMS/sms.db 'select count(*) from message where flags=0 AND address=5151212'`
Your version says 'Play a sound if I have any unread messages and a message from the noc'. My version is 'Play a sound if I have an unread message *from the noc*.

Quote:
I had an SMS that I left unread and let the phone enter deep sleep. Even though i have push email on, the phone would periodically enter a lighter sleep, enough for SMSNofity to ping once or twice. The interval was around 1/2 hour but sometimes like 10 minutes, so something wakes it up a bit. I think it might be the iMAP idle timeout/heartbeat that wakes the device, but basically, this will eventually wake up a little to give some type of continuing notification system, (though NOT a great one)
While I could make the phone wake up, and it would play a few messages, it would always go back to 'deep sleep' and mine was not waking up. As I don't use the apple email stuff (I use the gmail stuff, which does not poll), I'm not waking up on anything, but I'll check into that. Thanks.

Quote:
Erica's new tools include something called 'notificationWatcher', which watches for standard or Core telephone notifications, but I'm not entirely clear on how you would use it?
I didn't actually see this binary in the package from Cydia, even though it's on the list on her website. I was curious too.

Quote:
Originally Posted by dis1krazyazn View Post
I purchased the unlimited version of Kate for $45 because doing all the stuff for SMSnotify seemed way too complicated for me. I've been happy with it ever since. I changed the reminder sound to a custom one so that I can hear it even when I sleep, since the default ones were pretty quiet and short. I recommend Kate.
I looked this up and it's exactly what I want. Does it work on a Gen-1 Iphone running the new software, if Jailbroken?

Last edited by bhuga; 08-01-2008 at 03:03 AM.. Reason: Automerged Doublepost
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote