send sms in the background programmatically in iphone using phonegap 2.9.0 - iphone

I know we can use
MFMessageComposeViewController
to compose message and forward the SMS
My question is how can we send an SMS in the background ???
I am working on an application which has prefixed number of recipients and a fixed message body .
The user has to press a send button only once and this predefined message will be forwarded to all the recipients in the background .
The user should NOT be taken to messages application where he can edit the message body , add/remove recipients and then send the message
If there are any third party api then can they be used along with phonegap ?? and will the app be rejected ??
Kindly help !!!

Well, there is no documented solution. You may use undocumented approach, it is technically possible, but there is no way for You to AppStore then.

I only know native (ObjC) coding, not PhoneGap, but PhoneGap can't do more than native coding so I can tell you quite clearly that there is no way to send an SMS without opening the MFMessageComposeViewController. This is done to protect users from having messages sent without their consent. There is no way around this.

Related

Is it possible to create an app that auto responds to phone calls with a text message, and auto replies to received texts and emails?

I have not been able to find any information about the topic online, so I am assuming it is not possible, but is there a way to create an app that when turned on will respond to all incoming calls by sending them to voicemail and responding with a text message? I know you can set the reply with message in iOS6, but we would want the message to be sent automatically when the call is recieved, currently the respond with message the user still needs to hit a button when the call comes in to send this. We would also want to respond to any incoming SMS/imessages with a text. As well as reply automatically via email to any incoming emails. If anyone could link me to an apple site or somewhere that says you can't do this? Thanks for your help.
Edit - is there any way to get information about notifications for these items? I was thinking if you can't directly handle the call itself, on a timed loop you could check to see if there were any missed calls or any info relating to those? Thanks
Not unless you want to develop and application for jailbroken phones, which will not be allowed in the Apple App Store.

Send text message without show message composer or in bckground in iphone

Hi is it possible to send text message in background..?My new requirement is to send SMS if there is no internet connection .
I am trying MFMessageViewComposer but it shows the pop up view.
How can we send message without shown this pop up? Is there any other way to do this things.
It's not allowed. For example, what if I develop an app which send taxed SMS to a server of mine to get money ? That´s the main reason... I could also send innaproriate or SPAM SMS to random numbers...
That's why the user has to validate the sending.
Send SMS programmatically, without the SMS composer window hope that helps... Looks to be a similar question. According to the poster, ios6 does not allow you to send SMS in the background, without using a 3rd party API, like Nexmo, who provide a REST API to send messages using HTTP.
To send a message using Nexmo, just send a request like http://rest.nexmo.com/sms/json?api_key=n3xm0rocks&api_secret=12ab34cd&from=MyCompany20&to=447525856424&text=hello+hd1 and you'll get back JSON, change the endpoint to xml if you prefer that.

How to know iphone auto sending sms?

programmatically send SMS on the iPhone with out show MFMessageComposeViewController? It's possible? b/c I want to konw when's my phone send sms. I don't want my phone auto sending SMS.
If it's possible, how to know? How to catch that event?
In theory (and assuming the phone is not jailbroken), you cannot send an SMS without user intervention. If sending SMS messages via the API, the user will see the message-compose view controller.
That said, I suppose an app could "bypass" this by sending an HTML request to a third-party SMS gateway (in other words, the iphone is not actually sending the text message, but an external server is).
It's possible, but not using the SMS capability provided by the phone. An app author wanting to send SMS without the usual UI would have to purchase capacity from some third party provider (search for 'SMS provider' to find many such providers). Messages sent that way would cost the app developer money, which is as powerful a disincentive as you can find. They also wouldn't be identified with you.

Sending SMS in background from iPhone 4

I am creating an application that sends and SMS while taping on a button. To implement this functionality I installed the iPhone SDK 4. Since it supports in app SMS. But when I tap on my button to send SMS the MessageUI view controller is displayed along with my custom SMS body. I dont want to display this screen, I just need to send the SMS in the background with out displaying the SMS screen to the User.
Can any one help me in solving this.? Please help needed.
Thanks and Regards,
Shibin
I'm pretty sure there's no way to do this. Apple wants the user to confirm an SMS send for at least a couple of reasons:
SMS costs the user money to send
If your app could send without confirmation, you could spam contacts from the user's address book, or worse, give them a link to a phishing site that they trust because the text came from a trusted source
Why do you care if the user confirms the SMS or not? As soon as they tap "Send", the MessageUI view controller is dismissed and the user is back in your app's screen.
The only alternative I can think if is to send an NSHTTPURLRequest to a web service that provides an SMS gateway. That you could certainly do in the background, though likely you (the developer, not the user) would incur the cost of sending the messages, and the sender would not appear to be the user.
According to the official Class Reference provided by Apple, the composing message will always come up so that the user can confirm the message.
No, you cannot do that. There is a reason for that MessageUI controller showing - it's to confirm with the user that indeed the SMS is sent with her knowledge and understanding.
Without message body you can't send a message to the user. You want to send a message in background .Simply you refer the topic like web service, api reference .Its help you to send a message in background. hope this is helpful for you..

how to send SMS/Email from an application

first of all thanks a lot to all of you for past valuable suggestions,we are creating an application where on certain events wants to send email/sms to specified phone number we already tried with the openURL call but it opens the existing inbuilt email/sms application of the iphone.Our requirement is to send sms/email without opening the inbuilt iphone email/sms application is it possible if yes what are the supported API's to achieve it.
thanks in advance.
You can do this with a short code by way of a SMS/MMS aggregator like OpenMarket or as another person has posted you can use the SMS Gateway but this requires the knowledge of the end users carrier name. If your replying to a SMS on the iPhone I believe you can use the API which in turn would give you the carrier id of the incoming SMS message you would like to reply to.
Maybe you could explain your problem a little more so we can better grasp your question.
You can see my other answer from a similar question. Basically you can send an email to the phone if you know the provider. The provider will then format the email into a SMS message.