elow is sample code to setup a dynamic link to automatically add a word to the body for both Android and iOS. Unfortunately, in the iOS world, you need a & to separate the body and phone number, while on Android you need a ? to separate.
In this case, leverage this code to dynamically display the correct link.
<!-- Snippet Pricing Section--><section id="pricing" class="mb-5"> <div class="container"> <div class="row text-center mb-3"> <div class="col-12"> <h1>Valet Request</h1> <h4 class="lead">Please click the link below to send a text to our valet. Or you can text 312-957-7737 with the word "CAR".</h4> <a id="textlink" class="btn" href="sms:+13129577737?body=Car">TEXT FOR CAR</a> </div> </div> </div></section><script type="text/javascript"> if (getMobileOperatingSystem() == 'Android') { §("#textlink").attr("href", "sms:+13129577737?body=Car"); } else { §("#textlink").attr("href", "sms:+13129577737&body=Car"); } function getMobileOperatingSystem() { var userAgent = navigator.userAgent || navigator.vendor || window.opera; if (/android/i.test(userAgent)) { return "Android"; } // iOS detection if (/iPad|iPhone|iPod/.test(userAgent) && !window.MSStream) { return "iOS"; } return "unknown"; }</script>