View Single Post
  #6 (permalink)  
Old 05-20-2008, 03:56 PM
NetMage's Avatar
NetMage NetMage is offline
Developer
 
Join Date: Aug 2007
Device + Firmware: iPhone 1.1.3
Operating System: Windows XP / OS X
Location: Virginia
Posts: 1,134
Thanks: 37
Thanked 183 Times in 148 Posts

1)Is there a more efficient way to create a new SMS message in my Inbox (with the iPhone's SMS app knowing it's 'new') than using sqlite3 to inject a new message into my sms.db, and using erica's app to set the SMS badge on the icon?

There may be a procedure to add a new SMS message but I imagine it is buried in the phone and not designed to be publicly accessible. Unfortunately Apple hasn't yet realized the concept of making the standard iPhone applications common use (as they have with the AddressBook).

2)Would the iPhone's SMS app break if a new message is manually injected into the sms.db??

I would think it shouldn't break, but I would bet there is a notification that is supposed to be sent in case the application is running so it knows when a new message is received. I would think the notification would also take care of the badge update. The trick is figuring it out.
__________________
Starlight Computer Wizardry
Pocket-sized Development
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote