Is it possible to copy multiple numbers from a table to the clipboard then paste the same to the SMS.app's To-field, like possible using commas after each number?
Thanks in advance!! :)
This is not a full answer, but check out UIPasteboard which allows you to manipulate the system clipboard. You might try adding multiple NSURL 'sms:...' "items" to the general pasteboard to see if the sms app interprets them appropriately. Please reply and let me know if it works.
Also check out MFMailComposeViewController. I don't think it will internally support SMS, but you could use it to email multiple SMS numbers using a general SMS gateway, or use a lookup table of cell phone providers by number allocation block to use individual providers' gateways. Advantage of using MFMailComposeViewController is that you don't need to quit your app.
There are some "free text message", "free MMS message" apps on the app store that seem to use the later approach.
Related
I am developing one application that has many controls to format the text.The controls are like colors,Font Style,Border,Giving Background to Text,and even animations.
My Question is can I send this formatted text through SMS and MMS to my friends?is apple support this?
please give me any link or any reference where i can study this and implement it in my project.
thanx in Advance....
As far as I know its not possible, I have seen SO many of these apps on the store that basically just save as a picture and send as a picture.
As of now... in the SDK MFMessageComposeViewController doesn't support MMS.
Although you can render an image and send it.
HOW DO THEY DO IT????
They might send a request back to their server which sends an mms from there?
Here are some options:
This is not possible with the current MessageUI API: the MSMessageComposeViewController doesn't accept attachments like the MFMailComposeViewController does.
The only way to do this currently is to use an external service that allows you to send mms via a REST call for example.
GSMA defines a REST specification for exactly this purpose: http://www.gsmworld.com/oneapi/reference_documentation-version_1.html (multiple pdf's on this page)
Try to find a local service provider that implements this specification and you're good to go.
Just to add the direct wiki link to the OneAPI MMS spec: http://gsma.securespsite.com/access/Access%20API%20Wiki/MMS%20RESTful%20API.aspx and a link to the PHP/Java sandbox https://github.com/OneAPI/GSMA-OneAPI where MMS can be tested locally . Cheers.
Apple only supports sending of SMS text messages, use the MFMessageComposeViewController.
Since sms only supports sending plain text you can't set any format.
MFMessageComposeViewController does not support MMS, which would allow you to send formated messages.
This is in regard to Objective-C in an iPhone app...
I have figured out how to get a list of all contacts on my iPhone, but is it possible to send out a mass text? I know I can make a message composer which has an array of recipients, but that will end up sending the text as a group text, not as an individual text to each person.
Also, is there a way to send a text message in iOS without using a message composer?
Most likely no, at least not without jailbreaking. This is the sort of thing that Apple wouldn't allow developers access to just to prevent any possible abuse by the same (especially when it might cost a user a small chunk of change if a mass-text got sent out).
MFMessageComposeViewController is your best bet. You'll be able to specify an array of phone numbers to send SMS to. As for group messaging, I would assume it would default to the users settings. (This is an option in Settings.app) It's simple enough to test but the documentation doesn't mention it.
http://developer.apple.com/library/ios/#documentation/MessageUI/Reference/MFMessageComposeViewController_class/Reference/Reference.html#//apple_ref/doc/uid/TP40009668
I am currently working on an iOS application that uses live audio streaming, and our users have asked for a feature to automatically block incoming calls when they are streaming. I know that there is no API to do this, so the way we solved it is to have a button on the UI that automatically calls a certain number (specific to the telecom provider) that turns blocking of incoming calls on or off. It does this simply by opening a tel: URL.
This all works fine, and while it may not be very user friendly because it forces users to exit the application, I do belive it's the most elegant solution with the tools provided by the iOS API.
There is one caveat though, some telecom providers do not have a single short number that people can call to turn this feature on or off. They use instead long codes that have special characters in them, such as # and *. Unfortunately iOS refuses to open tel: URLs with those characters, presumably for security reasons. However I was wondering if it is possible for users to put those numbers into contacts and then have iOS call those contacts directly?
I know how to retrieve phone numbers from the address book directly, but that's no use because I will still have the problem of the URLs not getting accepted. So is there instead a way to, say, have tel: URL with a contact ID or something similar?
Thanks for reading and/or replying. :)
You can't dial # or * from an app. It's Apple's scheme to protect us from nasty people.
To quote from Apple's documentation:
To prevent users from maliciously redirecting phone calls or changing
the behavior of a phone or account, the Phone application supports
most, but not all, of the special characters in the tel scheme.
Specifically, if a URL contains the * or # characters, the Phone
application does not attempt to dial the corresponding phone number.
...and converting to ASCII characters and other tricks doesn't work either (I tried).
I'm trying to implement an app that can read received SMS and email out. I mean convert the text content to voice. So I need to access to SMS and email first. As far as I know, there is no such API provided in the default SDK. Is there any other way to realize it?
Are the SMS messages stored in database(sms.db)? How to access to them? Is it only possible on jailbroken iphones?
And what about emails? Are they only stored in mail servers? How can I get them in my app?
Sorry for asking so many questions. I have spent many days on this problem, but havn't found any solutions...
You can't. According to the Device Features Programming Guide: Sending an SMS Message:
In iPhone OS 4.0 and later, you can send text messages from within your application. This feature is strictly for sending messages. Incoming SMS messages go to the built-in Messages app.
There are serious privacy and security concerns with enabling app access to emails and SMS, and I am glad Apple choose not to do it.
Yes, you can, (at least with SMS) but only in a jailbreak app (which you suggest is ok in your comments).
The sms.db file can be read by apps that aren't sandboxed.
See my answer to a similar question for how to get SMS content. That answer just shows how to get the most recent SMS, but if you just use the commented out while loop, you can iterate through all SMS.
I have made an iphone application that allows users to send text messages for free to any mobile. I want to allow users to add emoticons into their message from standard set provided by me. What might be the best possible solution for this scenario?
regards
ayaz Alavi
The typical way is to use UTF8 codes which map to images on the users' phones.
However, unless the recipients of the text have configured/setup their phone to support these codes ala the [Emoji app of the day], they will see little square boxes.
If both the sender and the recipient have your application, then you can handle it directly, of course.
So basically, you are SOL. There isn't anything you can do besides recommend your users install an emoji app. Sorry.
You can add like this
NSString *comment = [comment stringByReplacingOccurrencesOfString:#":)" withString:#"\ue415"];
Find some emotions code here
Here