Automatic SMS using swift/xcode

Hi, I am making an iOS app that requires sending SMS automatically.
I am using MFMessageComposeViewControllerDelegate. But it makes the message screen to pop up and requires user interaction to send the message. Is there anyway I can send the message in without user interaction ?

Hi @bilvi,
As a safeguard Apple does not allow you to send SMS without the user consent or even emails. However if you still want to send a sms or an email without the user interaction (considered not good - and can lead to your app being rejected) you could use a service directly. Use an SMTP server and send the message from the iOS device or a SMS using a SMS service.

cheers,

Thanks @jayantvarma.

An alternate can be installing your own SMS gateway and send SMS through internet

This topic was automatically closed after 166 days. New replies are no longer allowed.