Send SMS from within app

Hi,

With one of the my web apps, i need to send SMS but it seems that the only way to send an SMS is still to leave the app and then send it from the messages section. This is not ideal for my application. I am not too keen on using some other service to allow me to do this.
Can this now be achieved all in AppStudio?

Thanks

The rules have changed. You can’t just send SMS/MMS messages.

On Cordova you use the social-plugin and SMS… while you can pre-fill all the fields, the user still has to press send.

Thanks for your response.

I have this same question - can you send an SMS message directly out of an appStudio app on a phone? Without Phonegap?

All you can do is pass the SMS to your message app using an intent. The message app then sends the message:

location.href="sms:" & tel & "&body=" & encodeURI(body)

You can probably see the potential for abuse if a web app was allowed to send SMS messages automatically by itself.

I have been sending a SMS directly from within the app without leaving it using PhoneGap.
I use this plugin:

<gap:plugin name="cordova-plugin-sms" source="npm" />

Then use this in AppStudio:

SMS.sendSMS(SMSnumber, SMStxt, SentSuccess, SentFail);

function SentSuccess(result) 
 {
 ...
 }
function SentFail(result) 
{
  ...
}

Great! I tried it but didn’t work. I got this message:

I want to use it with iPhones -

Thanks!

Are you referring to the not signed/No certificate message?

If so, click on the “not signed” link. You’re about to learn about signing apps for iPhones. There are a number of steps Apple requires you to take when making apps for iOS.