【发布时间】:2017-06-09 20:28:44
【问题描述】:
在 Google IO 的本次会议 https://youtu.be/MUULwaxqFLI?t=35m36s 他说我们可以使用电话号码选择器自动获取电话号码 但他表明,另一方面,AuthUI 的新版本尚未发布。
如果我想实现自动电话号码选择,我应该怎么做。
【问题讨论】:
标签: android firebase firebase-authentication
在 Google IO 的本次会议 https://youtu.be/MUULwaxqFLI?t=35m36s 他说我们可以使用电话号码选择器自动获取电话号码 但他表明,另一方面,AuthUI 的新版本尚未发布。
如果我想实现自动电话号码选择,我应该怎么做。
【问题讨论】:
标签: android firebase firebase-authentication
FirebaseUI 2.0 现在提供电话号码身份验证支持: https://github.com/firebase/FirebaseUI-Android/blob/master/auth/README.md
要使用电话号码选择器,请使用以下文档中的 HintRequest 并进行配置:
新的 HintRequest.Builder() .setPhoneNumberIdentifierSupported(true) .setEmailAddressIdentifierSupported(假) .build();
https://developers.google.com/identity/smartlock-passwords/android/retrieve-hints
【讨论】: