简体   繁体   English

我可以将用户输入的电话号码发送到iPhone上的服务器吗?

[英]Can I send a user-entered phone number to a server on iPhone?

I know that Apple does not permit developers to read the phone number of the device and send that to a server. 我知道Apple不允许开发人员读取设备的电话号码并将其发送到服务器。

However, I can't find anything about whether I can send the phone number of the current device if the user enters it into the app . 但是, 如果用户在应用程序中输入当前设备的电话号码,我将无法发送任何信息。

I would like to let people sign up to my service using only their phone number as an identifier (ie no need for an email address) and to send them an SMS with a secret code to authenticate them. 我想让人们仅使用他们的电话号码作为标识符来注册我的服务(即不需要电子邮件地址),并向他们发送带有密码的SMS进行身份验证。

Thanks. 谢谢。

Absolutely you can do that. 绝对可以的。 The reason you can't read the phone number is that it requires a private API call. 您无法读取电话号码的原因是它需要私人API调用。

An even more user-friendly method could be to allow the user to select their phone number from the address book. 更加用户友好的方法可能是允许用户从通讯簿中选择他们的电话号码。

That's what Viber does. 这就是Viber所做的。 You are permitted to send any user data to your server - as long as the user knows exactly what data is that and allows you to do it. 您可以将任何用户数据发送到服务器-只要用户确切知道那是什么数据并允许您执行该操作即可。

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

相关问题 iPhone和核心数据:如何在更新之间保留用户输入的数据? - iPhone and Core Data: how to retain user-entered data between updates? IOS如何验证输入的电话号码实际上是用户电话号码? - Ios how can I verify that the phone number entered is actually the users phone number? 我可以在Iphone的后台将位置发送到服务器吗? - Can I send locations to a server in background on Iphone? 将一个视图中的用户输入数据应用于另一个视图 - Applying user-entered data in one view to a second view 如何在目标c中检查用户输入的电话号码是否有效? - How to check user entered phone number is valid or not in Objective c? 如何验证在iPhone应用程序中输入的帐户(例如,Apple ID)用户? - How can I verify account (say, Apple ID) user entered in iPhone app? 我可以将数据发送到服务器iphone上的javascript函数吗 - can i send data to a javascript function on the server iphone 格式化在iPhone的文本字段中输入的数字 - Formatting the number entered in textfield in iPhone 如何在iPhone应用程序中将本地电话号码转换为国际格式? - How can I convert a local phone number to the international format in an iPhone app? iPhone:如何在不退出应用程序的情况下拨打电话号码? - iPhone: How Can I Dial to a Phone Number Without Quitting My Application?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM