简体   繁体   English

HTML / XHTML TEL:和USSD字符串

[英]HTML/XHTML TEL: and USSD String

Hi All I'm trying to get the <a href='tel:*120*5xxxx#' /> to work but it does not like the USSD part. 大家好我正在尝试使<a href='tel:*120*5xxxx#' />正常工作,但它不喜欢USSD部分。 Is there a way to use tel: with a USSD string ? 有没有办法将tel:与USSD字符串一起使用?

PS. PS。 xxxx above represents numeric value's and yes i have tried urlencoding. 上面的xxxx代表数值,是的,我尝试了urlencoding。

As far as i know, Iphone doesn't permit that html links have in them USSD codes, they are ignored. 据我所知,Iphone不允许HTML链接中包含USSD代码,因此将其忽略。 this answer explain it better maybe. 这个答案也许更好地解释了。

Android from it's side, has different behaviours. 从侧面看,Android具有不同的行为。 I usually escape the string that contain the USSD, it depends on the lenguage you are programming it on, i mean, in javascript could be escape() or urlencode() for example if you are on php. 我通常会escape包含USSD的字符串,这取决于您对其进行编程的语言,例如,如果您使用的是php,则在javascript中可能是escape()urlencode() Anyway, doing some tests, it seems that Android phones could or could not follow the links with USSD codes this because it has been found a vulnerability on some phones (galaxy s3 for first) where you could reset the phone with a proper USSD code, without any user prompt. 无论如何,进行一些测试,似乎Android手机可能会或无法遵循带有USSD代码的链接,因为这已在某些手机(首先是galaxy s3)中发现了一个漏洞,您可以在其中使用适当的USSD代码重置手机,没有任何用户提示。 Thes has lead to a patch from Android (as far as I know), but I don't know what happens next. Thes导致了Android的补丁(据我所知),但我不知道接下来会发生什么。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM