使用Url_launcher在tel uri中添加#登录 [英] Add # sign in tel uri using Url_launcher
问题描述
在flutter应用程序中,我正在使用Url_launcher依赖项打开电话应用程序,其中包含要使用以下功能拨打的内容 Url_launcher.launch("tel:\ * 5 * 250#"). 它的确打开了应用程序,但是没有拨#符号,其他一切正常,包括#???
的任何解决方法我仅在Android设备上发现了此问题.它适用于iOS.
您需要对URL中的特殊字符使用 URL编码.>
所以#
等于%23
这将起作用launch('tel:\*5*250\%23');
此答案对我有所帮助.
In flutter app i am using Url_launcher dependency to open phone application with content to dial using following function Url_launcher.launch("tel:\*5*250#" ). It does open the application but # symbol is not dialed in there else everything works ok ... Any workaround to include # ???
I found this issue only on Android devices. It works on iOS.
You need to use URL encoding for special character in a URL.
So #
equals %23
This will work launch('tel:\*5*250\%23');
This answer helped me.
这篇关于使用Url_launcher在tel uri中添加#登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!