Hey, I am about to start working on an app. I am a beginner, so I am starting out with a pretty basic concept. But, I was wondering if it was possible to send texts from an app. For example, if the person using my app sets a new high score, could they hit a publish button and my app could then send a text to his buddy bragging about the new high score.
Also, what if someone is using my app and they receive a text, does the OS take over, or do I have to handle the reception of text/calls. Is it possible to alter the way the phone behaves when my app is disrupted by calls/texts.
Thanks for any advice you can give. Have a good Monday everyone!
Apple’s iOS documentation has a section that roughly covers how to incorporate in-app SMS.
Basically, your application displays an
MFMessageComposeViewControlleras a modal view controller. It won’t cause your app to terminate or background — it just lets your user send a text message, and when done, return to your app and continue.When a phone call, text message or another notification comes in, your application delegate’s
applicationWillResignActive:method is called. It’s up to you what you want your app to do while the user is dealing with the call, message or notification. If the call is declined or the alert dismissed, your application delegate’sapplicationDidBecomeActive:method is called and your application can resume as if nothing happened. Otherwise, the app either exits or backgrounds (depending on whether you want it to support multitasking), and you’ll also have to handle it from there.Also bear in mind what Toastor says about