如何从手机网站读取OTP? [英] How to Read OTP from mobile website?

查看:64
本文介绍了如何从手机网站读取OTP?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的要求是侦听来自移动网站的SMS消息.SMS将包含一个OTP(一次性密码).

My requirement is to listen for SMS messages from a Mobile website. The SMS will contain a OTP (One Time Password).

我们网站中使用的技术是ASP.Net MVC和引导程序.这是普通的移动网站,而不是混合应用程序.

Technologies used in our site are ASP.Net MVC and bootstrap. This is plain mobile site and not a hybrid app.

有没有能让我做到这一点的插件?可以使用普通的javascript吗?

Are there any plugins that can allow me do this? Can it be done with plain javascript?

推荐答案

是的,现在可以在移动浏览器中实现.Chrome在版本84及更高版本中发布了此功能.借助WEBOTP API,我们可以在移动设备的Web上检测OTP.

Yes, this is possible now in mobile browsers. Chrome release this feature in version 84 and above. With the help of WEBOTP API, we can detect OTP on the web for mobile devices.

阅读以下内容:

这是带有Angular PWA应用程序的Web-OTP集成代码: https://github.com/Rohit3230/webOtpAutoReadByAngular

Here is a Web-OTP integrated code with Angular PWA Apps: https://github.com/Rohit3230/webOtpAutoReadByAngular

访问角度PWA应用程序的实时工作URL. https://rohit3230.github.io/webOtpAutoReadByAngular/

Go for live working URL for angular PWA app. https://rohit3230.github.io/webOtpAutoReadByAngular/

这篇关于如何从手机网站读取OTP?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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