How to hide the message content on the MFMessageComposeViewController control - iphone

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.

Related

Creating an iOS app: Using native mail app questions

I'm creating an iPhone app that uses the native iOS mail app. Is it possible that when the user clicks either cancel or send in the mail app, it can then redirect back to the app itself without having to reopen it?
Is it then also possible that when the user goes to access the mail portion of the app, it can display the mail app within my app in a webview type manner? Thanks.
No, you cannot change the functionality of another publisher's app, especially Apple's. But it sounds like you can accomplish what your want to do by using MFMailComposeViewController. It allows you to send an email from within your app, i.e. without leaving it to go to the native mail client.
If what you are doing is just sending emails you can display a MFMailComposeViewController to allow user to send emails without leaving the app.

send google maps link via in-app email

actually am developing an iOS application that allows the user to send his position via mail or sms.
I want just to send an email containing a link like http://maps.google.com/maps?q=London
Then the receiver have just to touch that link to open maps application
Is there any way to do that
thank in advance
That's built-in to the Mail app in iOS. If you send yourself http://maps.google.com/maps?q=London in an email, and open it on an iOS device it will automatically link it to the Maps app. If you want to link to the Maps app from a different app see this link How can I launch the Google Maps iPhone application from within my own native application?
You can do something like putting a hyper link inside the message body of the email, and setting the isHTML property to YES when making the message body of your MFMailComposeViewController.
Try looking into the MFMessageComposeViewController and MFMailComposeViewController classes. MFMessageComposeViewController has the body property while MFMailComposeViewController has the setMessageBody:isHTML: method.
After you implement these modal view controller you can easily take http://maps.google.com/maps?q=London set the respective property/use the respective method to fill the message/email body with your maps link along with any other text you want to add.

Directly send sms from app by clicking button in app

I am working on application. I want to send sms to number directly by clicking button in my app. currently my app is sending sms to number but it first shows the messages view and then there is a send button as i've done:
presentModalViewController:controller
i want the message to be sent without showing the Modal view
You can't this is not allowed.
This way you could send hunders or thousands of messages without the user noticing, thus apple does not allow you to do that.
That's not possible. You have to show the user de message view where he can send the sms. If it would be possible to add a 'send sms' function directly to a button, that would be a huge security flaw!
No. There is no official way on iOS to send a message without presenting the dialog and the user clicking send. Maybe on a jailbroken device you could, but definitely not on the app store.

Send SMS from iPhone Programmatically

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.

iPhone: How to Programmatically Respond to SMS Messages

After a review of the iPhone SDK documentation, I have not yet found a way for an application to be written such that it can programmatically process the content of an incoming SMS message within the iPhone platform. The idea would be for such an application to be running in the background and based on specifically formatted SMS messages would be able to take specific actions.
Does anybody know if this is possible with an iPhone SDK application and if so, provide a pointer to information about how this can be done?
Unfortunately, you cannot intercept - or be notified of - incoming SMS messages with the iPhone SDK.
One possible alternative, is to register a custom URL scheme that launches your application when a url with that scheme is embedded in the sms message and the user cicks on it.
to set a custom url scheme, you must implement both the CFBundleURLSchemes and CFBundleURLName keys in your application's info.plist.
In your Application's delegate, you can then implement the application:handleOpenURL: method to get any paramaters that were passed to your App from the url in the SMS message.
I believe that currently the SDK doesn't allow for background apps (except for apple ones).
BREW and J2ME had (and probably still have) ways to launch your app via specially formatted SMS, which may be what the Jeff is referring to.
Apple does have the upcoming Push Server which will allow you to send the user an alert which will give them the option of launching your app, but you cannot launch your app for them.
Unfortunately just registering an URL scheme dosn't help you at all, because the SMS app makes "http://" urls clickable only...
You can use CoreTelephony framework.But you must user some private api.And I have some demo code for this. https://github.com/edison0951/AppNotifyBySMSDemo