当我收到消息iPhone应用程序时,自动填充OTP到TextField [英] Autofill OTP to the TextField when I receive message iPhone app

查看:167
本文介绍了当我收到消息iPhone应用程序时,自动填充OTP到TextField的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从我的应用程序注册时,我正在向已注册的手机号码发送OTP,我想在我的应用程序中检索该OTP而无需打开短信应用程序...当用户收到OTP消息时,我需要在此处显示该OTP ...如何我可以在iOS中实现这一点吗?我也有用户电话号码。

While registering from my app I was sending OTP to the registered mobile number I want to retrieve that OTP in my app without opening SMS app...When the user received OTP message I need to display that OTP here ...How can I achieve this in iOS? I also have user Phone number with me.

在搜索中,我找到了 this 但我不清楚如何启动它。
任何人都可以帮助我吗?

On search, I have found this but I am not clear how to initiate this. Can anyone help me from this?

推荐答案

您无法访问ios上的消息,因此您无法通过读取短信在ios应用中自动填充OTP。

You cannot access messages on ios and hence you cannot autofill the OTP in ios apps by reading sms.

您发布的链接中的答案不会读取短信。他们只是创建一个自定义网址方案,当用户点击短信中的自定义网址时填写otp。

The answers in the link that you have posted do not read the sms messages. They just create a custom url scheme and the otp is filled in when the user clicks the custom url in the sms.

这篇关于当我收到消息iPhone应用程序时,自动填充OTP到TextField的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆