Questions tagged [mfmessagecomposeviewcontroller]

For questions about the MFMessageComposeViewController class in iOS, which allows composing and sending text messages.

The MFMessageComposeViewController class provides a standard system user interface for composing text messages. Use this class to configure the initial recipients and body of the message, if desired, and to configure a delegate object to respond to the final result of the user’s action—whether they chose to cancel or send the message. After configuring initial values, present the view controller modally using the presentModalViewController:animated: method. When done, dismiss it using the dismissModalViewControllerAnimated: method.

Reference: https://developer.apple.com/library/prerelease/ios/documentation/MessageUI/Reference/MFMessageComposeViewController_class/index.html

199 questions
2
votes
6 answers

ios MFMessageComposeViewController ipod crash

Hi I am using MFMessageComposeViewController for messaging in an iPhone app. As this is an iPhone app it also supports iPod. And when clicking on the message button the app crashes as messaging is not available on iPod. So is there a way to check…
Spidy
  • 1,137
  • 3
  • 28
  • 48
2
votes
3 answers

How to check if sim card is installed or not

I am developing an app which has call and message functionality , i want to check if sim card is installed or not coz i am facing problem with messaging as it gives alerts for " Message Sent Successful" Please help me out.
Himanshu
  • 321
  • 1
  • 4
  • 19
2
votes
1 answer

Check if message will be sent using iMessage or cellular network

Using MFMessageComposeViewController to check if the device canSendText or not. All is Ok but is there anyway to detect that message will be sent using iMessage or Cellular SMS. There's a persistent requirement that user should be alerted if the…
Ahmed
  • 772
  • 1
  • 9
  • 26
2
votes
2 answers

MFMessageComposeViewController continue previous conversation

Is it possible when I create a message compose view controller to a specific number that I am already engaging a conversation in iMessage or text, that I continue the conversation?
adit
  • 32,574
  • 72
  • 229
  • 373
2
votes
3 answers

iOS message composer view inside titanium application

Currently I'm using the following code to display the message composer, but it opens the native iOS message app and my application goes to background. Titanium.Platform.openURL('sms:'+e.rowData.value); But I want to show the message composer inside…
Midhun MP
  • 103,496
  • 31
  • 153
  • 200
2
votes
0 answers

Presenting MFMessageComposeViewController broken in iOS 6

My app presents a MFMessageComposeViewController modally. It was working perfectly fine in iOS 5 (both on the simulator and on the device). After I upgraded my iPhone to 6, it simply doesn’t work anymore. The app freezes for like 10 seconds, then…
2
votes
1 answer

MFMessageComposeViewControllerDelegate error - black screen

I'm using the following code to show in-app sms. My app don't have a status bar. (I'm using 320x480 pixels screen in portrait view). the problem is that when I load the controller, the screen becomes black as you can see from the…
2
votes
1 answer

Get message body and recipients list from MFMessageComposeViewController

Is there a legal way to get body text and recipients list from MFMessageComposeViewController after SMS was sent(in didFinishWithResult callback delegate)? I have an application which sends SMS and saves it in history. I'm using…
Misha
  • 5,260
  • 6
  • 35
  • 63
1
vote
1 answer

Sending an SMS on iPhone

I have been working on implementing SMS messaging into my app. Unfortunately whenever I test it I always get the default result, even if it does send the message and I receive it on the other end. What am I doing wrong, I have compared other…
1
vote
1 answer

MFMessageComposeViewController: Cannot Style "Cancel" Button in Dark Mode

I'm currently trying to style the "cancel" button that is in the top right corner (the navigation bar and the button are both grey) and I am having no luck. I've tried calling several different methods and none have worked. My project builds for…
1
vote
0 answers

Should "Messages App" be specified as a device requirement in the info.plist if my app relies on MFMessageComposeViewController?

If MFMessageComposeViewController calls the Messages App (as stated in the documentation, then I would expect Messages App would need to be specified under the Required device capabilities key in the info.plist file? On iPhone, specifying Messages…
JonH
  • 761
  • 4
  • 7
1
vote
1 answer

MFMessageComposeViewController disable editing text entry?

Hello StackOverflow friends, I am integrating a MFMessageViewController and I want to disable the editing area of it either by disallowing the keyboard to appear or by disabling the user interaction to it. Currently my code is : import UIKit import…
1
vote
2 answers

Delegate cannot be constructed because it has no accessible initializers?

So I have a class that has a function to send an SMS message. I tried making the class conform to the delegate protocol...it ends up causing the class to require a type alias which I thought would be of type MFMessageViewController but that didn't…
nickcoding
  • 305
  • 8
  • 35
1
vote
1 answer

Swift How to Send Url in Text Message with MFMessageComposeViewController

How can you send a url via MFMessageComposeViewController? When you share a url from Safari, it shows a rich link preview. However, I've only been able to pass a url as plain text. This is what I want to achieve: This is my code that only displays…
Ryan
  • 107
  • 7
  • 30
1
vote
2 answers

iOS : Check whether the phone is dual SIM?

In Android we can detect whether the phone is Single SIM or Dual SIM. And as we know iPhone XS, iPhone XS Max, iPhone XR, and later feature Dual SIM with a nano-SIM and an eSIM except china mainland where there is no eSIM. A) I can programatically…