M
M
maximrep2017-02-22 18:36:46
iPhone
maximrep, 2017-02-22 18:36:46

Why on iphone, when I click on a link with the tel: parameter, an error occurs instead of a call?

The site contains links

<a href="tel:+0000000000" title="phone">+0 (000) 000000</a>
which is used for clickability of phone numbers. Links work correctly on all devices and browsers except iphone devices with safari. Testing was carried out on iphone 6, 7, 7+, SE models. Everywhere the same problem, when you click on the phone link, a popup appears with a warning: c78e3caf83fa42da9d0f32baa2847352.png
After clicking "allow", there was a call, for everyone except 7+. On foreign sites I found such solutions as: insert a meta tag into the header
<meta name="format-detection" content="telephone=YES">
, put the Ariel font on the link. Nothing helped. Has anyone encountered such a problem?
PS: An interesting point. There are two sister iPhones SE (were bought in the same store) on which the site was checked. The owner of one of the phones during testing was in Ukraine and used a Ukrainian operator's SIM card, while the second phone was in Russia and, accordingly, used a Russian operator's card. The first phone (with a Ukrainian SIM card) did not display a warning at all and immediately made a call, but the second one displayed a message. The screen is made from the second.
PS after PS: I solved the problem as follows (thanks to Andrey Khokhlov and mentatxx for the solution ): I hung a click handler on the linkin which the event.stopPropagation() function was executed;

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Khokhlov, 2017-02-23
@maximrep

Megafon, Novosibirsk. The first 2 phones are ringing, those below are displaying a message.
I have English on my phone, I googled the text of the error.
Here's what I found: mentatxx.livejournal.com/117410.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question