Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 02-10-2009, 06:26 PM   #1 (permalink)
Registered Member
 
DenVog's Avatar
 
Join Date: Jan 2009
Location: Silicon Valley, USA
Posts: 622
Question Launch SMS with New Message Window Open

Is it possible to launch the Text Message application and have it automatically open the New Message window without prepopulating a phone number?

Right now I can get it to launch the Text Message (SMS) application, but the user then has to click the new message button to compose a message.
Code:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"sms:"]]		[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"sms:"]];
I don't know who they will want to forward the message to, so I can't prepopulate the phone number. I would like to save them a click and have it open the New Message window by default.

PS-Ideally I could prepopulate the body of the message for the user, but I've gone through the forums and Apple docs and come up empty on that.
DenVog is offline   Reply With Quote
Old 02-10-2009, 07:56 PM   #2 (permalink)
Registered Member
 
Join Date: Nov 2008
Posts: 188
Default

Quote:
Originally Posted by DenVog View Post
Is it possible to launch the Text Message application and have it automatically open the New Message window without prepopulating a phone number?

Right now I can get it to launch the Text Message (SMS) application, but the user then has to click the new message button to compose a message.
Code:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"sms:"]]		[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"sms:"]];
I don't know who they will want to forward the message to, so I can't prepopulate the phone number. I would like to save them a click and have it open the New Message window by default.

PS-Ideally I could prepopulate the body of the message for the user, but I've gone through the forums and Apple docs and come up empty on that.
Have you tried an empty string in front of sms: ? A period? etc..
jsonli is offline   Reply With Quote
Old 02-10-2009, 08:40 PM   #3 (permalink)
Registered Member
 
DenVog's Avatar
 
Join Date: Jan 2009
Location: Silicon Valley, USA
Posts: 622
Default

Quote:
Originally Posted by jsonli View Post
Have you tried an empty string in front of sms: ? A period? etc..
I've tried several things.
  • "sms" - brings up general Text Messages screen
  • "sms: " - brings up the New Message screen, but with a little blue circle in the To field that it a little confusing and probably needs to be deleted.
  • "sms:?" - brings up the New Message screen, but with a question mark in a blue circle in the To field
  • "sms://" - brings up general Text Messages screen
  • "sms:&" - brings up the New Message screen, but with a ampersand in a blue circle in the To field
  • "sms:." - brings up the New Message screen, but with a period in a blue circle in the To field

I am just throwing things in there to see if anything sticks, as I've not been able to find it documented anywhere or an example. Just seems like a simple intuitive thing that I'm having a hard time believing Apple wouldn't allow you to do. Alas, nothing has worked thus far. Appreciate any guidance.

Last edited by DenVog; 02-10-2009 at 08:44 PM.
DenVog is offline   Reply With Quote
Old 02-17-2009, 01:34 PM   #4 (permalink)
Registered Member
 
Join Date: Aug 2008
Location: New York City
Posts: 50
Default

Did you ever get the SMS thing figured out...? I am in the same situation.
toughturtle is offline   Reply With Quote
Old 02-17-2009, 02:39 PM   #5 (permalink)
Registered Member
 
DenVog's Avatar
 
Join Date: Jan 2009
Location: Silicon Valley, USA
Posts: 622
Default

Quote:
Originally Posted by toughturtle View Post
Did you ever get the SMS thing figured out...? I am in the same situation.
I could not get it working. I've searched the forums and Apple docs extensively. Couldn't find an answer. Did a little bit of trial and error just to see if something might work, but obviously none of it did. Would still appreciate any insight someone else might have.
DenVog is offline   Reply With Quote
Old 09-20-2009, 05:17 AM   #6 (permalink)
Registered Member
 
Join Date: Nov 2008
Posts: 48
Default

Quote:
Originally Posted by DenVog View Post
I've tried several things.
  • "sms" - brings up general Text Messages screen
  • "sms: " - brings up the New Message screen, but with a little blue circle in the To field that it a little confusing and probably needs to be deleted.
  • "sms:?" - brings up the New Message screen, but with a question mark in a blue circle in the To field
  • "sms://" - brings up general Text Messages screen
  • "sms:&" - brings up the New Message screen, but with a ampersand in a blue circle in the To field
  • "sms:." - brings up the New Message screen, but with a period in a blue circle in the To field

I am just throwing things in there to see if anything sticks, as I've not been able to find it documented anywhere or an example. Just seems like a simple intuitive thing that I'm having a hard time believing Apple wouldn't allow you to do. Alas, nothing has worked thus far. Appreciate any guidance.
Hi
Is there any way to pre-populate several number in "to:" field of new sms screen? For one something like "sms:4546" forks fine, but neither of "sms:4546, 7788", "sms:4546,7788", "sms:4546;7788", "sms:4546&7788" works. Any ides about delimiter? Or maybe there is no way to send several numbers?
HARDWARRIOR is offline   Reply With Quote
Reply

Bookmarks

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



» Advertisements
» Online Users: 339
18 members and 321 guests
ADY, Dani77, Duncan C, F_Bryant, Grinarn, HemiMG, Herbie, jansan, linkmx, macquitzon216, mer10, Monstertaco, prchn4christ, Robiwan, sly24, Touchmint, twerner, zulfishah
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,882
Threads: 89,228
Posts: 380,760
Top Poster: BrianSlick (7,129)
Welcome to our newest member, jansan
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 01:39 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0