Question

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?

Was it helpful?

Solution 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#");
           }
    );
});

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top