Flutter: Firebase Setup |  Auth | Google Sign-In | Explained | Android & iOS

Flutter: Firebase Setup | Auth | Google Sign-In | Explained | Android & iOS

Codepur

7 лет назад

82,924 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@utkarshraj9061
@utkarshraj9061 - 06.08.2019 22:38

Auth.signInWithGoogle not working . Please help

Ответить
@rahulmacwan4494
@rahulmacwan4494 - 21.08.2019 12:43

Thank You sir! The video was very helpful.

Ответить
@ride4sun
@ride4sun - 30.08.2019 21:09

Thanks for the video. Please consider mixing ur audio better it is scratchy and base is missing and to many high frequency.

Ответить
@jpalepu-q8s
@jpalepu-q8s - 02.09.2019 10:38

How to use custom tflite model for prediction?

Ответить
@anaskhaani
@anaskhaani - 08.09.2019 07:45

Hello sir,
i am unable to use signInWithGoogle method please help me

Ответить
@AmanGupta-ll6zt
@AmanGupta-ll6zt - 10.09.2019 19:42

Plugin with id 'com.google.gms:google-services' not found. plz help me

Ответить
@hassainbasha9195
@hassainbasha9195 - 15.09.2019 16:55

Thanks for your tutorial it was very helpful, Can you help me to get the current logged in user I had tried using FirebaseAuth.instance.currentUser() and also tried by use listener onauthstatechanges

Ответить
@akliatharia
@akliatharia - 30.09.2019 19:51

1


I am getting “Plugin with id 'com.android.application' not found” plz a solution

Ответить
@abhinavkumar1999
@abhinavkumar1999 - 13.10.2019 20:20

The method 'signInWithGoogle' isn't defined for the class 'FirebaseAuth'.
Try correcting the name to the name of an existing method, or defining a method named 'signInWithGoogle'.

Ответить
@sneharao9516
@sneharao9516 - 02.11.2019 17:45

error: The method 'signInWithGoogle' isn't defined for the class 'FirebaseAuth'. (undefined_method at [flutter5] lib\main.dart:18) . How to solve it?

Ответить
@bhavikvashi
@bhavikvashi - 06.12.2019 11:59

You need to provide SHA-1 key while registering your project for Google Sign in

Ответить
@07navneet
@07navneet - 29.12.2019 19:35

signInWithGoogle option not available now, please update the code

Ответить
@jithukailas3556
@jithukailas3556 - 11.01.2020 04:41

The .method 'signInWithGoogle' isn'tdefined for the class 'Firebaseauth'..this error is showing after running..what is the solution sir?

Ответить
@shekharsuman9593
@shekharsuman9593 - 05.02.2020 19:27

not working

Ответить
@maheshpanday8792
@maheshpanday8792 - 08.02.2020 19:23

PlatformException(FirebaseException, An internal error has occurred. [ API key not valid. Please pass a valid API key. ], null.
This error is coming while execution and ust showing error signin help me solve it.

Ответить
@GloryOfWedding
@GloryOfWedding - 18.02.2020 20:30

Bhai ye signInWithGoogle prblm a raha h

Ответить
@GloryOfWedding
@GloryOfWedding - 18.02.2020 20:30

It show this method is not in firebaseauth

Ответить
@HarshSingh-hk8fe
@HarshSingh-hk8fe - 09.03.2020 15:55

Is this method is good for production app??

Ответить
@kingrulers5225
@kingrulers5225 - 29.03.2020 18:56

bro your method is old now and not working.....

Ответить
@abhishek0116
@abhishek0116 - 31.03.2020 20:39

_auth.signInWithGoogle is no longer working with latest firebase_auth so here how I deal with it


Future<bool> loginWithGoogle() async {
try {
GoogleSignIn googleSignIn = GoogleSignIn();
GoogleSignInAccount account = await googleSignIn.signIn();
if (account == null) {
return false;
}


AuthResult result = await _auth.signInWithCredential(
GoogleAuthProvider.getCredential(
idToken: (await account.authentication).idToken,
accessToken: (await account.authentication).accessToken));
if (result.user == null) {
return false;
}
print('User Name: ${result.user.displayName}');
return true;
} catch (e) {
print('Failed to login with Google');
return false;
}
}

Ответить
@vaibhavthapliyal3429
@vaibhavthapliyal3429 - 19.04.2020 15:03

If someone is having trouble with the missing "signInWithGoogle" method, use this:


GoogleSignInAccount googleSignInAccount = await signIn.signIn();


GoogleSignInAuthentication googleSignInAuthentication = await googleSignInAccount.authentication;


final AuthCredential credential = GoogleAuthProvider.getCredential(
accessToken: googleSignInAuthentication.accessToken,
idToken: googleSignInAuthentication.idToken,
);
FirebaseUser user = (await auth.signInWithCredential(credential)).user;

Ответить
@AbhishekKumar-rl1pj
@AbhishekKumar-rl1pj - 01.05.2020 17:17

This method is not working as I tried it. Here follows the code that is working. It seems that they have changed something.

GoogleSignInAccount signInAccount=await googleSignIn.signIn();
GoogleSignInAuthentication googleSignInAuthentication=await signInAccount.authentication;
final AuthCredential authCredential=GoogleAuthProvider.getCredential(idToken: googleSignInAuthentication.idToken, accessToken: googleSignInAuthentication.idToken);
FirebaseUser firebaseUser=(await _auth.signInWithCredential(authCredential)).user;

Ответить
@pubji766
@pubji766 - 20.05.2020 17:51

How can I integrate Google sign in option on my flutter project without any disturbance to the original flutter project

Ответить
@princeanujk
@princeanujk - 24.05.2020 19:46

Bro which theme r u using...?
Or its Custmized....?

Ответить
@averageconsumer5374
@averageconsumer5374 - 31.05.2020 13:36

How to auto login everytime whenuser opens app?

Ответить
@foodieMandy
@foodieMandy - 11.06.2020 19:56

Firebase is free? if not
Is there any alternative like mongodb
Less costly and free secure at same time

Ответить
@alrazibashir846
@alrazibashir846 - 30.06.2020 19:14

Thanks for the clear and helpful explanation! learned alot.

Ответить
@VoiceOfMiddleClassIndians
@VoiceOfMiddleClassIndians - 13.07.2020 14:29

Brohh....please help us out with setting up the Google play games service(GPGS).......!

Ответить
@AnvildevilGq00
@AnvildevilGq00 - 16.07.2020 08:27

stop teaching people by copy pasting code

Ответить
@darshanjasoliya4508
@darshanjasoliya4508 - 31.07.2020 06:51

I am facing erorr like properties and gradle exception error in app level gradle build,
can you help me.

Ответить
@jagmohansingh5684
@jagmohansingh5684 - 22.08.2020 12:48

signInwithGoogle is not defined for class firebase auth error coming what to do

Ответить
@amnesia4439
@amnesia4439 - 22.08.2020 12:53

what version of jdk you use in this video?

Ответить
@search_me_tilak
@search_me_tilak - 21.11.2020 13:22

Facebook login

Ответить
@fluttertheme945
@fluttertheme945 - 23.11.2020 21:26

It's a request to make a video on phone authentication.

Ответить
@Raj_Gada
@Raj_Gada - 18.12.2020 13:40

Please recreate this series

Ответить
@bernaakoglu2439
@bernaakoglu2439 - 08.01.2021 22:52

2021 den. Teşekkür ederim , çok işime yaradı.

Ответить
@muhammadhassan9162
@muhammadhassan9162 - 20.01.2021 08:28

FirebaseUser has been changed to User

AuthResult has been changed to UserCredential

GoogleAuthProvider.getCredential() has been changed to GoogleAuthProvider.credential()

onAuthStateChanged which notifies about changes to the user's sign-in state was replaced with authStateChanges()

currentUser() which is a method to retrieve the currently logged in user, was replaced with the property currentUser and it no longer returns a Future<FirebaseUser>

Ответить
@alokgupta2397
@alokgupta2397 - 23.02.2021 08:57

how to save this data so when we back to our app the url and data will not show null??

Ответить
@toobasheikh106
@toobasheikh106 - 08.04.2021 15:18

I'm getting an error that FirebaseUser isn't defined

Ответить
@nerellavenkatapathidattatr9005
@nerellavenkatapathidattatr9005 - 07.05.2021 19:23

Really amazing 5✨✨✨✨✨✨✨ superb thanks a lot😊😊💖

Ответить
@anupambhatt3376
@anupambhatt3376 - 21.05.2021 16:18

Future is giving this error: The name 'FirebaseUser' isn't a type so it can't be used as a type argument.

Ответить
@rsmgaming4384
@rsmgaming4384 - 08.09.2021 07:59

The method 'signInWithGoogle' isn't defined for the type 'FirebaseAuth'. Please help me with this issue !!!!

Ответить
@SAURABHGUPTA_DINOSAUR
@SAURABHGUPTA_DINOSAUR - 29.07.2022 07:15

The code actually didn't work for me as many lines were throwing error cuz keywords regarding firebase keep updating as per the time, but i'd say the method worked! Cheers for the method. Good🥂🥂

Ответить
@AbdifitahAbdulkadir
@AbdifitahAbdulkadir - 31.03.2023 13:53

Can I anyonee know the font name he is using for editor?

Ответить
@pranavrishi8
@pranavrishi8 - 11.07.2023 21:20

watching this in 2023 mid. You're just a savior. These explanations get right into head.

Ответить