You can even specify multiple recipients. Unlike using the 'SMS.' url format, this allows your application to stay open, and allows you to populate both the to and the body fields. You prepopulate the SMS fields, then the user can initiate the SMS send within the controller. IOS 4, however, now provides a viewController you can import into your application. (ie, your program on the iPhone sends a UDP packet to your server, which sends the real SMS) iOS 4 Update Your best bet is to set up an intermediate server on the internet that uses an online SMS sending service and send the SMS via that route if you need complete automation. (Imagine if the game instead dialed 911 at a particular time of day)
I'm sure you really want to have spams from your friends, 'Try out this new game! It roxxers my boxxers, and yours will be too! !!!! If you sign up now you'll get 3,200 RB points!!'Īpple has restrictions for automated (or even partially automated) SMS and dialing operations. If you could send an SMS within a program on the iPhone, you'll be able to write games that spam people in the background.