June 2018
Beginner to intermediate
394 pages
9h 2m
English
Go to Firebase console and inside the authentication window, go to sign-in method and enable phone number sign- in. Now, we need to add the phone number provider inside the getAuthProviderList method:
private List<AuthUI.IdpConfig> getAuthProviderList() { List<AuthUI.IdpConfig> providers = new ArrayList<>(); providers.add( new AuthUI.IdpConfig.Builder(AuthUI.EMAIL_PROVIDER).build()); providers.add(new AuthUI.IdpConfig.Builder(AuthUI.GOOGLE_PROVIDER).build()); providers.add(new AuthUI.IdpConfig.Builder(AuthUI.FACEBOOK_PROVIDER).build()); providers.add(new AuthUI.IdpConfig.Builder(AuthUI.TWITTER_PROVIDER).build()); providers.add(new AuthUI.IdpConfig.Builder(AuthUI.PHONE_VERIFICATION_PROVIDER).build()); return providers ...
Read now
Unlock full access