HomeStoreForumsWikiiPhone Native AppsiPhone Apps modmyi Downloadsmodmyi Links








Android Forum | GPhone Forum

iPhone Poker

Go Back   Apple Forums | ModMyi.com | iPhone, iPod, Mac, OS X, Mods, More > 3rd Party Apps For iPhone | iPod Touch > iPhone / iPod Touch SDK | Development Discussion
Register FAQ Members List READ THIS Today's Posts Mark Forums Read

iPhone / iPod Touch SDK | Development Discussion SDK questions. A place for iPhone developers to post code snippets, discuss creating iPhone apps, and any other iPhone developing.


Congrats to the Winners of our Contest

Discuss AppStore Apps! | MMi Cydia Repo Download Stats

Get more out of ModMyI by joining our free community. By registering you get privileges to download files from our downloads section and you may also post your questions in our forums! It's fast, free, and easy!

2.1 Unlock|Jailbreak OS X | iPhone 3G Detailed Review w/Pics! | Developers - Port Your Apps to 2.0
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-17-2008, 10:21 AM
What's Jailbreak?
 
Join Date: Dec 2007
Posts: 21
Thanks: 2
Thanked 2 Times in 2 Posts
Send SMS to myself from terminal?

I'm wondering if it is possible to do one of the following in order to post a new SMS into my SMS 'mailbox' (for alerts from CLI apps I'm developing, etc):

1) A commandline app (similiar to the iphone CLI apps Erica released) that would allow me to send an SMS to myself for alerts, etc



2) A way to insert required fields into the sms.db sqlite db manually (using ported sqlite3), which would equate to '1 new SMS message'.

a) Would the iPhone SMS app even notice and _know_ that it is a new SMS if I insert it manually into the database?



3)Use AT&T's free tool for sending SMS online <-- Will not work since it requires login to access


4) Any other ideas??


Thanks!

Could a moderator please move this thread to a forum that is likely to generate an answer to my question so I don't have to double-post this elsewhere

Last edited by craftyguy; 05-17-2008 at 10:21 AM. Reason: Automerged Doublepost
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #2 (permalink)  
Old 05-17-2008, 12:32 PM
Green Apple
 
Join Date: Sep 2007
Device + Firmware: iPhone 4GB 1.1.4 Jailbroken
Operating System: OSX 10.5.2
Posts: 36
Thanks: 1
Thanked 2 Times in 2 Posts
Send a message via AIM to CHI3F Send a message via Yahoo to CHI3F

If its just the new sms badge on the sms icon that you want, there is a commandline app that can change the badge for any app on the springboard. Try looking for Erica's Utilities.
__________________
Click the image to open in full size.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #3 (permalink)  
Old 05-17-2008, 01:52 PM
What's Jailbreak?
 
Join Date: Dec 2007
Posts: 21
Thanks: 2
Thanked 2 Times in 2 Posts

That's a start I suppose.

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?

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

Thanks!
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #4 (permalink)  
Old 05-18-2008, 11:11 PM
What's Jailbreak?
 
Join Date: May 2008
Posts: 9
Thanks: 0
Thanked 1 Time in 1 Post

"Send SMS from terminal"
Do you mean the terminal of your iPhone or the terminal of your PC/Mac?
If you mean the terminal of your iPhone, you can open a connection to your /dev/tty.debug file and use AT commands to request sending a message.
This website has some nice introduction about AT commands:
SMS Tutorial: How to Send SMS Messages from a Computer/PC Using a Mobile Phone or GSM/GPRS Modem? AT Commands
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #5 (permalink)  
Old 05-19-2008, 05:28 PM
What's Jailbreak?
 
Join Date: Dec 2007
Posts: 21
Thanks: 2
Thanked 2 Times in 2 Posts

Very interesting.
Yes I would like to send from iPhone terminal.

The ideal situation would be if I could do so without actually _sending_ an SMS (like inserting directly into sms.db), so a user wouldn't get charged an SMS on their phone plan. Any ideas?

Thanks!
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #6 (permalink)  
Old 05-20-2008, 03:56 PM
NetMage's Avatar
Developer
 
Join Date: Aug 2007
Device + Firmware: iPhone 1.1.3
Operating System: Windows XP / OS X
Location: Virginia
Posts: 1,138
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
Reply

  Apple Forums | ModMyi.com | iPhone, iPod, Mac, OS X, Mods, More > 3rd Party Apps For iPhone | iPod Touch > iPhone / iPod Touch SDK | Development Discussion

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

ModMyMoto.com - ModMyGPhone.com - modmyi.com - Dedicated Server Hosting by SingleHop - iPhone Wallpapers - Apple Forums & News | ModMyi.com | iPhone, iPod, Mac, OS X, More RSS Feeds - Contact Us - Link to us - Archive - Privacy Statement - - Top
Copyright © 2007-08 by ModMy, LLC. All rights reserved. You may not copy anything on this site unless you link to the original.
All times are GMT -6. The time now is 12:32 AM. Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
modmyi.com is an independent publication and has not been authorized, sponsored, or otherwise approved by Apple, Inc or Cisco Systems, Inc. The information contained on this site is for educational purposes only.
Forum skin by poetic_folly