How To Make Firbase Auth Login and Register in SketchWare
Hello friends, today I'm going to tell you how to create a firbase auth login and register page in sketchware. follow us step by step.
● To create a Register / login page in the Sketchware app, first you have to connect your app to firbase. You will find a link below which provides complete information on how to connect the sketchware app to firbase.
● How To Connect Sketchware App To Firbase
Step-1
After connecting the Sketchware app to firbase. Now you have to go to your app and create a register and login page in the view area as per the image below.
● edittext1
(edittext1 is user inter E-mail id)
●edittext2
(edittext2 is user inter password)
●button1
(login ,which will login already registered user)
●button2
(register ,which will register new user)
Step-2
Now, according to the image you have to add a firebase auth component.
Note
If your app does not connect to the firebase then your firbase auth component will not be added. so, please connect your app to firbase.
√ After adding firebase auth component you can also add "oncreate user complete and onsignin user complete" in the auth component.
Step-3
Now Set component on the oncreate activity Linear1 is visible.
(this will be i use testing purpose ,if user can login/register is completed then login/register page will be invisible. so that you can change as per your ideas).
Step-4
Now let us set block in button 1 and button2 according to the image shown below.
1.this blocks set is button1
(for that purpose user can login)
2.this blocks set is button2
(for that purpose new user can register)
Step-5
also complete blocks according to image
1.oncreate user complete
2.on signin user complete
Thanks For Supporting......
Login/Register Page |
● How To Connect Sketchware App To Firbase
Step-1
After connecting the Sketchware app to firbase. Now you have to go to your app and create a register and login page in the view area as per the image below.
● edittext1
(edittext1 is user inter E-mail id)
●edittext2
(edittext2 is user inter password)
●button1
(login ,which will login already registered user)
●button2
(register ,which will register new user)
Register/login page |
Step-2
Now, according to the image you have to add a firebase auth component.
Note
If your app does not connect to the firebase then your firbase auth component will not be added. so, please connect your app to firbase.
√ After adding firebase auth component you can also add "oncreate user complete and onsignin user complete" in the auth component.
Adding auth component |
Adding oncreate register complete and onsignin user complete |
Step-3
Now Set component on the oncreate activity Linear1 is visible.
(this will be i use testing purpose ,if user can login/register is completed then login/register page will be invisible. so that you can change as per your ideas).
Step-4
Now let us set block in button 1 and button2 according to the image shown below.
1.this blocks set is button1
(for that purpose user can login)
(for that purpose new user can register)
Step-5
also complete blocks according to image
1.oncreate user complete
2.on signin user complete
Thanks For Supporting......