Send SMS from iPhone Programmatically - iphone

How can I send a SMS from an iPhone programmatically?
Yesterday, I found an example code and coded it but the code gave me a SMS dialog (internal SMS dialog).
I just want to send a SMS programmatically without the internal SMS dialog.
Is there any example code?

Unfortunately, what you describe is completely impossible without a jailbroken device.

Related

How to send sms with flutter in android and iOS

all my app is base on SMS communication, first I use this sms package (https://pub.dartlang.org/packages/sms) but it's only supported by android. It's work fine for this.
But I need also to implement my app on iOS, so I use this new package (https://pub.dartlang.org/packages/flutter_sms) but it's didn"t work for me... when I try to send SMS to 0123456789, native sms APP call me an error :" wrong format [0123456789]".but I never add [].
I tried also simple_sms plugin (https://pub.dartlang.org/packages/simple_sms) first I don't know if it's iOS compatible, and when I click on "send SMS" I'm redirected to the native SMS app ...
I see that URL_lancher can send SMS, but if I understand, URL_lancher call also the native app to send SMS...
I need something more transparent. So are there an other example to send simple SMS in ios and android or just iOS with flutter, without call a second page ?
thank you
There's no available Flutter plugin with iOS support for sending SMS directly without launching an SMS app. For Android, you can use telephony - this has support for sending SMS directly from your app.
You can also try exploring Twilio. However, this requires a network connection to be able to send an SMS.

Sending SMS, image and video from imessage

With imessage, is there any API or service provided by Apple that can be used to send SMS, image & video from within an app?
No you can't directly use iMessage, you can use the MFMessageComposeViewController to send a SMS.
If the system then detects if the other user supports iMessage the SMS will be send via iMessage.
You can't force a message to send via iMessages.
Also there is no support for sending images or videos in a message via the MFMessageComposeViewController. Because MFMessageComposeViewControlleronly support SMS which does not support images or videos.
Use MessageUI framework and use
MFMessageComposerDelegate for SMS and
MFMailCoposerDelegate for email.
all it's provided by apple
Use MFMessageComposeViewController to send sms from app

How to hide the message content on the MFMessageComposeViewController control

I'm developing an Mobile Banking app on iPhone. This app use SMS message to send and receive data with server.
(This app of a bank)
I'm using the MFMessageComposeViewController control to send SMS to server.
The message content has been encrypted.
So, I don't want user can see the message content (I want to hide the message content on this control).
Is it possible to hide the content of message on the MFMessageComposeViewController control?
I found one app on App Store can custom the
MFMessageComposeViewController control:
http://itunes.apple.com/us/app/automatic-custom-sms/id409247779?mt=8#
How to custom this control?.
Thanks
I don't think you want that control. I would google for "programmatic sms". I found this
I dont think you can hide the interface or any UI items from the MFMessageComposeViewController as it is provided to you by the iphone itself.
So,what you can do is make a similar interface and then use other methods such as using third party web solution to send mail.

iphone - Sending SMS without quitting the application

In iPhone app Development, we can use "openURL" to send SMS.
But the problem is that, the app quits and opens SMS application.
How can I send 10 different customized SMS to 10 different phone numbers without quitting application?
There's no way to do exactly that -- presumably to stop unscrupulous applications spamming your contact list.
You can allow a user to send an SMS without existing your application by using the MFMessageComposeViewController, which is only available in iOS4. You can fill in the defaults but it's up to the user to press the "Send" button.
in iOS4, you app will goto into the background, so it is possible that the app wont quit.
I think you can also send the same message to 10 different people.
But to send 10 different messages, thats is a bit of spam engine, and apple dont allow things like this.

Implement sms scheme function in iPhone apps

is there any code on how to implement the sms scheme in iPhone apps. in addition, implementing this sms scheme will allow my apps interact with the sms apps ma like doing subscription of advertisement or services?
The iPhone SDK does any SMS functionality, either for accessing received SMSes, or sending SMSes. If you need this functionality you should file a bug with Apple.
Using UIWebView embed a html like below
Launch Text Application
New SMS Message
Apple URL Scheme TextLinks
https://developer.apple.com/library/content/featuredarticles/iPhoneURLScheme_Reference/SMSLinks/SMSLinks.html#//apple_ref/doc/uid/TP40008054-SW1