Problems using extensions in tel: hyperlinks on Android 4

前端 未结 3 1293
悲&欢浪女
悲&欢浪女 2021-01-13 18:38

We have a mobile web site with some phone number links, like this:

href=\"tel:12345678,123\"

This works fine on most devices, but it appears it doesn\'t work

相关标签:
3条回答
  • 2021-01-13 18:45

    According to the documentation, the tel: scheme supports RFC 3966. Reading these RFCs is a bit like reading cuneiform on clay tablets, but from what I can tell, your syntax is not part of that standard. It looks like you would want tel:12345678;ext=123.

    0 讨论(0)
  • 2021-01-13 18:45

    Something you can consider since tel:5553334444;ext=123 only works for less than 4.0 and tel:5553334444,123 works for 4.0+ would be to check the user agent and put out the appropriate one.

    0 讨论(0)
  • 2021-01-13 19:02

    I just tested both methods with Android 2.1.

    tel:5553334444;ext=123 ends up dialing an extension of 358123 instead of 123 because it converts ext into a number instead.

    The right way is to use comma.

    tel:5553334444,123

    Tried that with our extension here and it connected me through immediately. It first dials the number, then pauses, and then punches in the extension 123 on its own.

    0 讨论(0)
提交回复
热议问题