문제

How do I populate a '#' in a mobile browser auto-dialer using tel:123#?

ex:

<a href='tel:123#'>Dial this number</a> 

This will only populate '123' in the native auto-dialer. Any way to include the # in the dialer?

도움이 되었습니까?

해결책 2

i have the same issue on android, not only on iphone, and I have solved (at least for Android) by escaping the string:

<button class="phoneCallButton">click me and call an hash number</button>

$(document).ready(function(){ 


  $(".phoneCallButton").click( function()
           {

             window.location = 'tel:'+escape("*123#");
           }
    );
});

다른 팁

You can't, see How to use tel: with * (star, asterisk) or # (hash, pound) on iOs?


Apple Link should be helpful.

To prevent users from maliciously redirecting phone calls or changing the behavior of a phone or account, the Phone application supports most, but not all, of the special characters in the tel scheme. Specifically, if a URL contains the * or # characters, the Phone application does not attempt to dial the corresponding phone number.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top