Page 1 of 2 12 LastLast
Results 1 to 20 of 33

Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.


Thread: App idea: Unread SMS Notification

  1. #1
    Default App idea: Unread SMS Notification
    Back when I was using a Moto, there was a 3rd party application to play a notification sound every X minutes (1 minute, 3 minutes, etc.) until an unread message is opened.

    Can this be done for the iPhone?

  2. The Following User Says Thank You to toffeenut For This Useful Post:

    ucim2cute (2007-12-26)

  3. #2
    Yes, as a Remind me, in Nokia's symbian.

    I like it!!!

  4. The Following User Says Thank You to Misantropo For This Useful Post:

    ucim2cute (2007-12-26)

  5. #3
    iPhoneaholic ucim2cute's Avatar
    Join Date
    Nov 2007
    Location
    City by the Sea, Texas!
    Posts
    373
    Thanks
    181
    Thanked 14 Times in 12 Posts

    HI, we CAN have it for the iphone?? Cool! How do we find that, and is it safe for the 1.1.2 firmware? Thanks
    Stay Sexy, Sweet, and Wonderful!

  6. #4
    Former Owner / Founder of ModMyi Kyle Matthews's Avatar
    Join Date
    May 2007
    Location
    Tampa, Florida, United States
    Posts
    8,516
    Thanks
    577
    Thanked 4,905 Times in 1,247 Posts

    .


    ↑ ↑ ↓ ↓ ← → ← → B A [select] [start] Kyle Matthews

  7. #5
    Taskbar Notifier only shows an icon. Am I wrong?

  8. #6
    Retired Moderator dale1v's Avatar
    Join Date
    Sep 2007
    Location
    London, UK
    Posts
    3,784
    Thanks
    335
    Thanked 395 Times in 268 Posts

    you're correct. Good idea, but I wouldn't want a sound, just a small vibrate every few minutes

  9. #7
    I would like sound although I guess you could set that yourself

  10. #8
    What I am requesting for is sound/vibrate notifier, not just icons.

    Taskbar Notifier only shows an icon. Am I wrong?
    I thought this too. Last I checked, it only does show an icon.

    ...

    Anyway, I'm wondering. Why was this topic moved?
    Last edited by toffeenut; 2007-12-27 at 02:53 PM.

  11. #9
    x2 i want a sound please haha

  12. #10
    My razr (yeah i know ) used to vibrate from time to time when I had a missed call.
    iPhone FW 2.2.1, Jailbroken and Unlocked!

  13. #11
    i can imagine that this can be done easily with a python script running in the background.

    just let the script check sms.db for unread msg at certain interval, if there are unread messages, execute 'playaudio' (one of Erica's command line utility), and attach the path of the sound.

  14. #12
    Quote Originally Posted by peeInMyPantz View Post
    i can imagine that this can be done easily with a python script running in the background.

    just let the script check sms.db for unread msg at certain interval, if there are unread messages, execute 'playaudio' (one of Erica's command line utility), and attach the path of the sound.
    Can you please post a tutorial on this?

  15. #13
    Quote Originally Posted by toffeenut View Post
    Can you please post a tutorial on this?
    hi,... just wrote one after my previous post... tested and it worked..
    but not sure how this will affect the stability of iphone
    so.. use at your own risk

    Code:
    # date: 29th Dec 2007
    # usage: a simple python script to check for unread messages at interval
    # if there are unread messages, play a user-defined sound
    # warning: this script is not well tested, so use at your own risk
    # the script requires Python and Erica's Utilities to work
    # any problem please drop me a message
    # contact: [email protected]
    
    import sqlite3
    import os
    import time
    
    sms_db_path = "/private/var/root/Library/SMS/sms.db"
    
    # sound file to play when there are unread messages
    sound_path = "/private/var/root/Library/Scripts/sounds/OW1.WAV"
    
    # interval for checking unread SMS (in seconds)
    interval = 600
    
    def main():
    	while 1:
    		time.sleep(interval)
    		if has_unread(sms_db_path):
    			playSound()
    
    def has_unread(sms_db_path):
    	conn = sqlite3.connect(sms_db_path)
    	c = conn.cursor()
    	
    	# check for unread messages
    	query = '''select count(flags) from message where flags=0'''
    	c.execute(query)
    	unread = int(c.fetchone()[0])
    
    	conn.close()
    
    	if unread>0:
    		return 1
    	else:
    		return 0
    
    def playSound():
    	cmd = "playaudio %s" % sound_path
    	os.popen(cmd)
    	
    main()
    you can change the text in red, in particular the sound file. the sound file i use exists in my own path, so you'll have to change it to one that you have for this to work. default interval for checking is 600 seconds (10 mins), you can change to your own liking

    to run this script, you need to have
    Terminal
    Python
    Erica's Utilities

    paste the script in a file, let say "checkNewSMS.py", and let say in your HOME directory

    to run this script:
    launch terminal, type
    # nohup python checkNewSMS.py &

    then just close your terminal, the script runs in background until you restart your iphone. i dunno how to launch a script when u start a phone.. that'll be neat if someone can point it out to me

    ... and no idea how to make it vibrate.. sorry
    Last edited by peeInMyPantz; 2007-12-29 at 10:01 AM.

  16. #14
    peeInMyPantz, what firmware did it work on?

  17. #15
    Quote Originally Posted by toffeenut View Post
    peeInMyPantz, what firmware did it work on?
    i'm using 1.1.1
    but it shouldn't matter.. because it is just a python script, not a native iphone app
    as long as python, erica's utilities, and terminal are working fine with your iphone, then this script will work

  18. #16
    hey man can u please tell us how to apply this script on our iphone and i beg u if u could please do one for missed calls thank u verymuch

  19. #17
    iPhone? More like MyPhone
    Join Date
    Nov 2007
    Location
    In the clouds.
    Posts
    131
    Thanks
    2
    Thanked 16 Times in 11 Posts

    Default Nice
    Nice script, very useful, I wonder, is there a equivalent method on the iPhone to shortcuts/batch so that we can simply stick an icon on the SpringBoard to simplify loading the script?

  20. #18
    Quote Originally Posted by alias_neo View Post
    Nice script, very useful, I wonder, is there a equivalent method on the iPhone to shortcuts/batch so that we can simply stick an icon on the SpringBoard to simplify loading the script?
    I'm waiting for someone to tell me that.. i dunno how to do it.

    for missed phone calls.. i should be able to do it..
    give me some time.. i just went off for a 3 days new years break overseas

  21. #19
    Honestly, I've not tried this script either. Well, I don't know how. LOL. I hope someone can make an application out of this.

  22. #20
    Quote Originally Posted by toffeenut View Post
    Honestly, I've not tried this script either. Well, I don't know how. LOL. I hope someone can make an application out of this.


    I hope so

Page 1 of 2 12 LastLast
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •