Login With Email Verification app in sketchware
So let's start step by step
1.create a new project on sketchware or use your app login activity.
2.enable firebase project id,app id,api key.
3.enable appcompat
Look this
4. add firebase authentication component name auth ,, dialog componen name d (any your name) and intent component name I.
This my app design
Login Linear
And sign up linear
5. on create activity add this showed image
6. When sign up button clicked below this image
Note:you use now your edittext and email and password your app
7.this login button when clicked this image below
8.on create (authentication) user complete this image below
Code I used
1. FirebaseAuth auth = FirebaseAuth.getInstance();
com.google.firebase.auth.FirebaseUser user = auth.getCurrentUser();
user.sendEmailVerification().addOnCompleteListener (new
OnCompleteListener<Void>()
{ @Override public void onComplete(Task task) {if
(task.isSuccessful ()) {
2. } else {
3. }
}});
9. When user sign in complete this image below
I used code
1. FirebaseAuth auth = FirebaseAuth.getInstance();
com.google.firebase.auth.FirebaseUser user = auth.getCurrentUser();
if (user.isEmailVerified()) {
2. } else {
3. }
11. Save and run this project.
if any error please comment below











Comments
Post a Comment
Thanks To visiting our blog