I have a client who has multiple spa locations and would like to allow their users to book by clicking on a link to send a text message. I have a lightbox set up to display the different phone numbers for each location with “TEXT BOOKING” and “(604) 706-1225” buttons:
When I double click on the " sms " links they work from a desktop as if it was a " tel " link (opens in FaceTime on my Mac), but on my iPhone when I click the links nothing happens. I have read in some cases this may be because the “sms” link type may not be supported but not sure if that applies in this case.
As a test, try installing Opera Mini on your iPhone and click the links. From the article you added, it seems that the Opera browser supports SMS links on every platform.
If it works you’d probably need to find the right SMS link support for the different clients.
This is an old question, but I will answer for those who still come here: This is NOT currently possible at Wix.
It is possible to have an html link that sends an sms, however, Wix links do not take “sms:/” prefix, which is needed for that.
@andreas-kviby , from that same stackoverflow question, the best way to construct a link that will work on android, and ios in all versions, is add ;?& before the body param: Send me SMS
However, as said, this does not currently work at Wix.
EDIT: Just found a way around it. Requires a little hack though:
You can add a standard link to an http function, that will return a redirect to “sms:NUMBER”. So your link will look like: https://www.yourdomain.com/_functions/sms
And you should create an http_function with some code like this:
export function get_sms(request) {
let options = {
status: 301,
headers: {
"Location": "sms:123456789;?&body=hi"
}
};
return response(options);
}
Of course you can change this code to take the number and body from params in the request instead of hardcoded.
This was tested only on Android - Samsung S8
I faced the same choice and chose SMS marketing. My opinion is that this process is much easier to organize. I know only one company that does this. You need to visit bsg.world.com . Everyone can consult with them, regardless of what country you live in. Who can write in detail about email marketing?
I think that your problem is that you try to change the link in the onclick event, which is too late because the browser already picked the link.
I’d try to change the link in the $w.onReady function of the page, so when the user clicks the link it already has the right link
Did you get something in the console?
You can also debug the server side by opening the business manager » settings » site monitoring » site events ( see documentation here: Velo: Viewing Live Site Events | Help Center | Wix.com)
Add some console.log lines to your http function and see if it’s being called.