HTML makes it easy to interact with the SMS application using this link:
<a href="sms:">Send a SMS</a>
However, another OS also allows you to pre-populate the phone number and message body using:
<a href="sms:1234567890?body=Pre-Populted%20Message">Link</a>
on Android, or
<a href="sms:1234567890&body=Pre-Populted%20Message">Link</a>
In iOS 8+
All of this is well explained in this matter.
However, I noticed a problem on the iPhone that I canβt find a solution for: If the SMS application does not work in the background on your iPhone, clicking on the link will open the SMS app , but will not pre-fill the phone number and message body in a new message.
Since Google AdWords uses this functionality too , I tested my links too, but unfortunately they suffer from the same problem, so I doubt this solution, but still wanted to check the community here.
source share