Firebase Auth JGProgressHUD
Tinder Firestore Swipe and Match
In this lesson, we'll take the user interface fields and register a user with the Firebase Auth SDK. This will involve installing this library using Cocoapods along with modifying our Podfile. We'll go ahead and install all the necessary dependencies of Firebase and other utility libraries. I'll then show you the syntax for creating a brand new user with Auth.

Comments (17)
Prabhdeep Singh Randhawa
4 years ago
hi bryan, do u have any plans on including the feature of logging with facebook like the real app.that would be great.
Brian Voong
4 years ago
Robin Bindewald
4 years ago
Hey Brian made a Video about that and its still works. https://www.youtube.com/watch?v=iSszeW1aH6I
minhoigoo
4 years ago
Hi Brian? How can I solve this Problem? Firebase is installed, but not build and crash and this message in terminal in Xcode. "*** Terminating app due to uncaught exception 'FIRAnalyticsVersionMismatch', reason: 'Google Analytics for Firebase version (50200000) does not match with Google App Measurement (50300000) version. Please update.'" Do you have a solution, please?
st4n
4 years ago
add pod 'GoogleAppMeasurement', '~> 5.2.0' to your podfile pod update pod install enjoy
st4n
4 years ago
and next time - use fkn google :)
minhoigoo
4 years ago
Thank you so much :)
Brian Voong
4 years ago
Kevin Jefferson
4 years ago
hahahahahahahaha
mashype
4 years ago
Brian is awesome but not as fast as Google :)
netcome
4 years ago
and Now.. pod 'Firebase/Firestore','~> 5.15.0' pod 'Firebase/Auth','~> 5.15.0' pod 'Firebase/Storage','~> 5.15.0' pod 'Firebase/Core' pod 'GoogleAppMeasurement', '~> 5.4.0' pod 'SDWebImage', '~>4.4.2’ pod 'JGProgressHUD', '~>2.0.3'
Brian Voong
4 years ago
yuiso
4 years ago
only one week after "netcome", the firebase updated again. I would recommend pod 'Firebase/Firestore’ pod 'Firebase/Auth’ pod 'Firebase/Storage’ pod 'Firebase/Core’ pod 'SDWebImage','~>4.4.2’ pod 'JGProgressHUD','~>2.0.3' Otherwise, the app would run into an error says that mismatch the google analysis version
Cinquain
4 years ago
This episode was a disaster. For some reason cocoa pods completely crashed my app due to some google app measurements version. It took me a few hours to fix it but man... beware of cocoapods
Bugger
4 years ago
Hi Brain, After I tried to create pod. Here is the error code -> -bash: /usr/local/bin/pod: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby: bad interpreter: No such file or directory Please suggest.
Brian Voong
4 years ago
Bugger
4 years ago
MacBook pro 2015 with Mojave ver. 10.14.2 Thanks for prompt response
Brian Voong
4 years ago
Daniel Peach
4 years ago
So... do you have some pod caching set up or something, or is my internet just so much slower than yours? lol
Brian Voong
4 years ago
Daniel Peach
4 years ago
So just thought of this... is it any more or less proper to get the email from emailTextField in RegistrationController vs email in RegistrationViewModel?
Brian Voong
4 years ago
Daniel Peach
4 years ago
If anyone is curious, there are other things to display on the HUD, other than the spinning animation. For example with an error you can use hud.indicatorView = JGProgressHUDErrorIndicatorView() and for success, you can use hud.indicatorView = JGProgressHUDSuccessIndicatorView() and others. That way the HUD indicator matches the fact that this is an error alert or success alert, and not loading.
BobbyAxelrod
4 years ago
Thx!
Ignatius Cheng
4 years ago
Hi Brian, I received the following message - Terminating app due to uncaught exception 'FIRAnalyticsVersionMismatch', reason: 'Google Analytics for Firebase version (50200000) does not match with Google App Measurement (50500000) version. Please update.' I noticed that some comments mentioning to update the pod file. Can I ask how to update the pod?
Ignatius Cheng
4 years ago
I have sorted just now, no worries.
Liroy
4 years ago
How did you fix it? I have the same problem
Liroy
4 years ago
I fix it. st4n write: add pod 'GoogleAppMeasurement', '~> 5.2.0' to your podfile pod update pod install enjoy
pushkar
4 years ago
This worked thanks!
Eugeneberezin
4 years ago
I had the same issue! Your tip worked! Thanks!
dclawson
4 years ago
Because I'm reckless like that, after I got the GA version mismatch error, I just went ahead and installed the latest versions of all of the pods. Don't get mad. It all seems to work fine, except sometimes the password textfield will turn square and a pale yellow and have the text "strong password" (I think. I should have written it down). I've tried replicating it a few different ways (poor password, malformed email, etc.) but can't seem to figure out why it happens. The user registration works fine, showing up in the Firebase console. Any ideas?
Brian Voong
4 years ago
joewp
4 years ago
I have received this error.../Users/ABFSecurity/Library/Developer/Xcode/DerivedData/DateNight-ewmgssuztgpdnheachexqxulvpal/Build/Products/Debug-iphoneos/gRPC-C++/grpcpp.framework/Headers/impl/codegen/rpc_service_method.h:49:16: Parameter 'rpc_requester' not found in the function declaration. Any ideas on how to fix this problem? Thanks
rehannali
4 years ago
Hi joewp! Remove DerivedData to fix this problem.
stonypig1
4 years ago
what is difference if we put jgprogressHUD with or without the version number ? with the version It can't update when we type pod update ?
Brian Voong
4 years ago
BobbyAxelrod
4 years ago
Question: I was experimenting with adding a bunch of key/values to the docData dictionary in the RegistrationViewModel saveInfoToFirestore function and I got this error - "The compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions" What does this mean?? Is possible for a dictionary to have too many values. Any help would be greatly appreciated!
Brian Voong
4 years ago
BobbyAxelrod
4 years ago
I had that after the dictionary i.e ( as [String : Any], I did add Ints (example numberOfMatches: Int?) to the mix...does that make a difference?
Brian Voong
4 years ago
alix
3 years ago
*** Terminating app due to uncaught exception 'FIRAnalyticsVersionMismatch', reason: 'Google Analytics for Firebase version (50200000) does not match with Google App Measurement (50801000) version. Please update.' Any thoughts. Google app measurements are the internal dependency of some pod i think
Brian Voong
3 years ago
alix
3 years ago
I did that, also pod repo update. Please note that I am not running your project. I am writing parallel version since the beginning.
Brian Voong
3 years ago
Brian Voong
3 years ago
alix
3 years ago
I did find that too while comparing pod lock file. You were way faster than me :) Thanks, Brain, I really appreciate your lightning fast reply. I am encouraged to buy more of your course as I am very much like how you teach and help.
Guala
3 years ago
Thanks Brian, you helped me too!
nawafmansour
3 years ago
think you
古明智
3 years ago
<AppMeasurement>[I-ACS036002] Analytics screen reporting is enabled. Call +[FIRAnalytics setScreenName:setScreenClass:] to set the screen name or override the default screen class name. To disable screen reporting, set the flag FirebaseScreenReportingEnabled to NO (boolean) in the Info.plist - [Firebase/Analytics][I-ACS023007] Analytics v.50200000 started [Firebase/Analytics][I-ACS023008] To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled (see http://goo.gl/RfcP7r) [Firebase/Analytics][I-ACS023130] Configuration not found. Using default configuration [AutoFill] Cannot show Automatic Strong Passwords for app bundleID: com.TinderDemo due to error: iCloud Keychain is disabled How to disable this alert
HELP & SUPPORT