简体   繁体   English

从短信iOS读取用户名/密码

[英]Read Username/Password from sms iOS

I'm facing the following issue. 我面临以下问题。 I'm getting a sms while user login, where the user's new username and password are mentioned (both are numbers). 用户登录时收到一条短信,其中提到了用户的新用户名和密码(均为数字)。 Now I need to read the sms content and suggest the username data in UsernameTextField on QuickType bar , and do the same for the password in PasswordTextField . 现在,我需要阅读短信内容并在QuickType bar上的UsernameTextField建议用户名数据,并对PasswordTextField的密码进行相同的操作。 How can I implement this? 我该如何实施?

I know how to read and suggest a one time code (for verification, eg), but in this case I get two different codes. 我知道如何阅读和建议一次性代码(例如,用于验证),但是在这种情况下,我会得到两种不同的代码。

Any help would be appreciated! 任何帮助,将不胜感激!

There is no official way to do this. 没有官方的方法可以做到这一点。 iOS allows you only to set that a field is a password or a OTP kind, but doesn't allow to read the SMS messages, it will be suggested to the user automatically. iOS仅允许您将字段设置为密码或OTP类型,但不允许读取SMS消息,系统会自动向用户建议。

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

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