[英]how to get user's phone number in flutter
is there a package to get user's phone number for android and ios.是否有 package 来获取 android 和 ios 的用户电话号码。 I have read some packages like sim_info
and sim_data
but as I know there is no property to get user's phone number (please correct me if I am wrong)我已经阅读了一些像sim_info
和sim_data
这样的包,但我知道没有属性可以获取用户的电话号码(如果我错了,请纠正我)
There is another package called mobile_number还有另一个名为mobile_number的 package
Note that it doesn't work on iPhone.请注意,它不适用于 iPhone。
If you just want the phone number to fill a form field, you should use:如果您只想让电话号码填写表单字段,则应使用:
autofillHints: [AutofillHints.telephoneNumber}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.