基于Android SMS的用户验证通用流
我有一些使用Android SMS ReTriever API的Android应用程序来执行基于SMS的用户验证。我想知道是否有一种一致的方法可以通过SMS对用户进行身份验证,而不是使用我创建的每个应用程序实现它。我正在考虑创建一个身份验证应用程序,并将每个应用程序都可以调用的所有实现或某种巧妙的方法来巩固入门SMS验证流。实现这一目标的一些好实践/建议是什么。
I have a few different Android apps which use Android SMS Retriever API, to perform SMS-based user verification. I am wondering if there is a consistent way to authenticate user via SMS and not implement it with every app I am creating. I was thinking about creating an authentication app and move all the implementation there which each of the apps can call or some clever way to consolidate the onboarding SMS verification flow. What are some good practices/recommendations to achieve this.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为您想将SMS功能放在Android库中,并在所有应用中重复使用该库。
AS android文档状态:
因此,诀窍是创建一个新模块逻辑和UI您需要重复使用,然后将其添加为其他应用程序的依赖关系。
I think you want to put the SMS functionality in an Android Library and reuse that library in all your apps.
As Android Documentation states:
So, the trick is to create a New Module that includes the business logic and the UI you need to reuse and then, you add it as dependency to the other apps.