iOS App in Python with Kivy - Part 8: Login Screen with Firebase Authentication

preview_player
Показать описание
Part 8 of the Friendly Fitness iOS app in Python with Kivy tutorial

👇 LINKS AND INFO! 👇

In this video I allow users to sign up using their email and password by using Google Firebase's authentication feature. It's a super nice feature that handles a lot of things for you. I use the unique account id associated with an email/password combo to contain the data for each user in the real-time database. Next video will cover using the "refresh token" that Firebase authentication supplies to keep users logged in even when closing the app.

When writing your own app with Firebase, please do not share the web API key. It is meant to be secure and I'm only showing mine for the purpose of this tutorial. It will be taken down when the tutorial is finished.

Get the code on my github:

And follow along with some of my work at:
Рекомендации по теме
Комментарии
Автор

Great video Erik. Your channel really deserves a lot more subscribers!
Just leave a note here for someone who wants to use Kivy UrlRequest instead in this part. UrlRequest strongly depends on Kivy and seems to only work in a class that inherits Kivy classes. So you will either want to run it inside a Kivy class, or let MyFireBase inherit a Kivy Widget. To pass the data in a POST you also need to convert it into a json format first, with something like json.dumps.

thaiphan
Автор

@Erik Sandberg bro when i change my firebase rules and try to run as you did 35:58 but idek why i am getting an error of keyerror avatar .... why is it happenening?

chojijoshi
Автор

Thank you for all of your hard work Erik, very much appreciated.

eddielicea
Автор

Hi can you tell me how to ask for storage permission?
I mean when the app is opened then it should automatically ask for storage permission.

Thanks for all the videos 👍

anoopsinghrana
Автор

That's good, keep up the good work :)

GabrielPettier
Автор

{'error': "Invalid data; couldn't parse JSON object. Are you sending a JSON object with valid key names?"}
can someone help me with this??

yooslayer
Автор

My email and password fields are not showing but the button is showing. Getting the same error like you but in your on fields are showing but not on mine though each and every line is same. Please help. Thank you so much :)

WasimRana
Автор

Hey man, I'm getting ADMIN_ONLY_OPERATION as my 400 error messge instead of INVALID_EMAIL... and it persists for invalid password etc. Where should I look?

gabelenolive
Автор

Bro, thank you for your video,

At the end of your video, in firebase rules, you used write and read if only localId = auth.uid, but the thing is you already mentioned read: true and write: true, so no matter what is your status, it will read and write the data, I tried to follow you and change read and write to false, there where only I am getting an error, one more thing is if I am having localIds in database inside a key inside the database, could this rule also work ?!

also any idea regarding how to use the same thing with pyrebase because pyrebase looks more easier although its roots are coming from requests as the same steps you mentioned.

sadakatechnology
Автор

Why your don't use helper libraries like pyrebase or python-firebase ???

pbh
Автор

how do you login?
i did not see any code which allows some one to login

unidajohnlloydu.
Автор

How can I get the signup url please help me please

hadjerhamdi
Автор

Rules on firebase:
Auth.uid === $thingy

Isnot working on me. Please help someone

tasker
Автор

can i use python 3 for making ios app? or i have to downgrade to python 2?

mdAshikuzzamanAkash
Автор

Has anyone been able to break up the below line of kivylang code from loginscreen.kv:

rgb: if self.state == 'normal' else

I've tried several alternatives with "on_state" and "\", none of which seem to work.

burcakakiska
Автор

Has anyone succeeded to create apk with firebase auth? I wanna know what should I setting in buildozer.spec

kelvinwong
visit shbcf.ru