在Google IO上这个会话https://youtu.be/MUULwaxqFLI?t=35m36s 他说我们可以通过电话号码选择器自动获取电话号码 但他表示,使用AuthUI另一方面,新版本的Auth Ui还没有发布。
如果我想实现自动电话号码选择,那么我应该怎么做。
答案 0 :(得分:2)
FirebaseUI 2.0现已提供电话号码验证支持: https://github.com/firebase/FirebaseUI-Android/blob/master/auth/README.md
要使用电话号码选择器,请使用以下doc中的HintRequest并配置:
new HintRequest.Builder() .setPhoneNumberIdentifierSupported(真) .setEmailAddressIdentifierSupported(假) .build();
https://developers.google.com/identity/smartlock-passwords/android/retrieve-hints