1 Reply Latest reply on Jun 27, 2014 10:51 AM by Jon Tara

    Send SMS IOS

    Fernando Coelho da Silva
      Is there any solution to send an SMS with the text filled in IOS.

      Have the Intent in android, and iOS know has URLschema.

      I tried to use the IOS URLschema more only worked on iOS 5, 6.

      <a href="sms:+15105550101?body=hello%20there"> </ a>

      Someone has already implemented something similar or exit, a feature that I could use?

      The share options are very limited in IOS.

       

        • Re: Send SMS IOS
          Jon Tara

          It's possible to pre-fill the text, but only using the SDK, not with a URL. So, you'd have to write a native extension.

           

          There are plenty of tutorials on using the SDK for this. Here's one:

           

          http://www.appcoda.com/ios-programming-send-sms-text-message/

           

          It has a note at the end about using a URL:

           

          In iOS, you’re allowed to communicate with other apps by using URL. The mobile OS already comes with built-in support of the http, mailto, tel, and sms URL schemes. When you open a HTTP URL, iOS by default launches the URL via Safari. If you want to open the Messages app, you can use the sms URL schedule and specify the recipient. However, such URL scheme doesn’t allow you to put default content.

           

          Keep in mind on iOS there is no way for an app to send an SMS "silently". The user will get the standard iOS SMS dialog, and they will have to hit a button to send. Apple doesn't like "drive-by" SMS! (If you need to do this, you need to use an SMS gateway service.)