I dont mean to be off topic but does anyone know of a way to log back into an instagram account?? I was dumb lost my login password. I would love any tricks you can offer me
I have this error: Missing argument for parameter 'sourceApplication' in call in return GIDSignIn.sharedInstance().handle(url) do you know how to fix it?
Hey. Go to the method sign( signIn: GIDSignIn!, didSignInFor user: GIDGoogleUser!, withError error: Error!) { if let error = error { return } // Do the functionality that you want to do after sign in pushToViewController() }
Your tutorials really help me to develop apps for client as I am noob. Eventually which helps me and my family to stay financially stable. Lots of love 💕
How do I segue to a new view controller after doing this tutorial? The google log in works now but I'm not sure how to go to a home screen instead of just staying on a log in screen.
Hey. Go to the method sign( signIn: GIDSignIn!, didSignInFor user: GIDGoogleUser!, withError error: Error!) { if let error = error { return } // Do the functionality that you want to do after sign in pushToViewController() }
hello sir, i follow your steps and get stuck error at "FirebaseApp.configure()" - use pf unresolved identifier 'FirebaseApp.configure' what should i do?
Informative video. Does the app have to restart to get values? Getting an update mid running (e.g. new app version available) would be useful. Somer apps might be loaded for many days by iOS before a restart happens.
I followed the tutorial and everything works. But when I try to Sign In with Google and then hit Cancel it crashes the app giving me this error in the App Delegate: "Thread 1: Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value"
I was in Big Sur beta 11.0, and that OS version caused a huge problem for doing this. And everything went back to normal after I changed back to Catalina.
please provide source code,...what you do in the video..it will be very help ful for us...by the way nice video...we enjoy and learn lots of things from your video....
@@iOSAcademy I did try this particular code but it didn't work stackoverflow.com/questions/61826939/homeviewcontroller-not-loading-after-firebase-google-signin-in-appdelegate-swift Can you provide me a resource to make it work.
All is fine until 9:22 when I get an error on GIDSignIn.sharedInstance().handle(url) It says : Missing arguments for parameters 'sourceApplication', 'annotation' in call
Love the video!! One thing I found while testing it was when I clicked the button to sign in then pressed cancel, the app would crash. How can I fix this bug??? Keep up the great work!
@@iOSAcademy IT WILL HELP YOU TO SOLVE THIS PROBLEM. THIS PROBLEM IS OCCUR BECAUSE OF NOT HANDELING NIL IN (CURRENT USER). IF YOU WILL PRESS OPTION BUTTON AND CHECK (CURRENTUSER) TYPE. THEN YOU WILL SEE IT IS FORCE UNWRAPPED. YOU NEED TO HANDLE FORCED UNWRAPPED WITH THE HELP OF THIS FUNCTION ( GIDSignInErrorCode.HasNoAuthKeyInKeychain.RawValue). Just Copy it and paste into your AppDelegate file. extension AppDelegate: GIDSignInDelegate { func sign(_ signIn: GIDSignIn!, didSignInFor user: GIDGoogleUser!, withError error: Error!) { // Check for sign in error if let error = error { if (error as NSError).code == GIDSignInErrorCode.hasNoAuthInKeychain.rawValue { print("The user has not signed in before or they have since signed out.") } else { print("\(error.localizedDescription)") } return } // Post notification after user successfully sign in NotificationCenter.default.post(name: .signInGoogleCompleted, object: nil) } }
I have this error: Thread 1: Exception: "presentingViewController must be set." Which makes the app crash whenever I click the google sign in button. How can I fix it?
This is a solution to your error. You can extend your Delegate with this extension it will solve your error. extension AppDelegate: GIDSignInDelegate { func sign(_ signIn: GIDSignIn!, didSignInFor user: GIDGoogleUser!, withError error: Error!) { // Check for sign in error if let error = error { if (error as NSError).code == GIDSignInErrorCode.hasNoAuthInKeychain.rawValue { print("The user has not signed in before or they have since signed out.") } else { print("\(error.localizedDescription)") } return } // Post notification after user successfully sign in NotificationCenter.default.post(name: .signInGoogleCompleted, object: nil) } }
Noice video tutorial, thanks for sharing it One question, why did you set AppDelegate as GIDSignInDelegate and not your ViewController? Any specific reason?
Hello, I got a error when I clicked the Sign in button and showed me " terminating with uncaught exception of type NSException " and showed thread 1 signal SIGABRT where the class app delegate is made. Pls help!
Can you paste the whole error here please. Either you have not added the url type, set the delegate, or set the presentingController in your view controller
iOS Academy how to retain sign in after restarting the app. Like for the scene delegate routing .. in checking for current user and it says nil... any specific thing need to be done
this is honestly the best swift tutorials channels! I am so happy it got recommended
Im super glad you like the content! Thanks so much for watching - many more to come!
can I add this package without cocoapods?
Your tutorials are really easy to understand and digest!
Thanks!
Thank you so much for the help! I'm creating my first app, and these tutorials have really been saving me a lot of time. Great work and keep it up!
Hey Evan, I really appreciate it! These comments keep me motivated and creating new videos :)
I dont mean to be off topic but does anyone know of a way to log back into an instagram account??
I was dumb lost my login password. I would love any tricks you can offer me
Clang: error: linker command failed with exit code 1 (use -v to see invocation)
Plx help
I have this error: Missing argument for parameter 'sourceApplication' in call in return GIDSignIn.sharedInstance().handle(url) do you know how to fix it?
Thanks for the excellent video tutorials. if you can, please update this tutorial as well.
You should do swift UI next just because that is what apple supports more now
Noted
where is this code in the github repository? Im already a Patreon user
How do you make the segue to an other view after having signing with Google?
very good question! I'm stuck here too!
Hey.
Go to the method sign( signIn: GIDSignIn!, didSignInFor user: GIDGoogleUser!, withError error: Error!) {
if let error = error { return }
// Do the functionality that you want to do after sign in
pushToViewController()
}
FANTASTIC VIDEO!
Unfortunately this is outdated now with version 6 of Google Sign in for iOS
New video coming soon
Best Channel.
Thanks!
Your tutorials really help me to develop apps for client as I am noob. Eventually which helps me and my family to stay financially stable.
Lots of love 💕
Hello! I found a problem for people who use SwiftUI instead of UIKit, what to do when you don't have ViewController?
How do I segue to a new view controller after doing this tutorial? The google log in works now but I'm not sure how to go to a home screen instead of just staying on a log in screen.
Yes, I'm puzzled too!
yes me too!!!!
Hey.
Go to the method sign( signIn: GIDSignIn!, didSignInFor user: GIDGoogleUser!, withError error: Error!) {
if let error = error { return }
// Do the functionality that you want to do after sign in
pushToViewController()
}
I found this solution
self.window?.rootViewController!.performSegueWithIdentifier("YOUR SEGUE IDENTIFIER", sender: nil)
hello sir,
i follow your steps and get stuck error at "FirebaseApp.configure()" - use pf unresolved identifier 'FirebaseApp.configure'
what should i do?
Did you import firebase
iOS Academy yes sir i import firebase
same error
You should write -> FIRApp.configure()
Thanks man )
Youre welcome
The sign-in silently statement is:
GIDSignin.sharedInstance()?,signInSilently()
Informative video. Does the app have to restart to get values? Getting an update mid running (e.g. new app version available) would be useful. Somer apps might be loaded for many days by iOS before a restart happens.
Thanks. Nope, you can queue fetches
Migrated to new version at 6.0.0. So it doesn't have delegate anymore.
Thanks a lot. Very exiting and usefull tutorials. Pls keep up.
Your welcome!
I followed the tutorial and everything works. But when I try to Sign In with Google and then hit Cancel it crashes the app giving me this error in the App Delegate: "Thread 1: Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value"
I was in Big Sur beta 11.0, and that OS version caused a huge problem for doing this. And everything went back to normal after I changed back to Catalina.
I would totally buy your courses !
Im super pumped for this course Im putting together. Make sure to join the waitlist to be notified at ios.academy/waitlist
if the Google app is installed, can we redirect the user to the app, where it is already signed in?
please provide source code,...what you do in the video..it will be very help ful for us...by the way nice video...we enjoy and learn lots of things from your video....
Thanks! Source code is available for newer vids :)
Nice video. I wanted to know how you can open a Home View Controller after user logs in
After log in is called, fire off a notification to the VC to present another (Home) VC
@@iOSAcademy I did try this particular code but it didn't work stackoverflow.com/questions/61826939/homeviewcontroller-not-loading-after-firebase-google-signin-in-appdelegate-swift Can you provide me a resource to make it work.
@@iOSAcademy from where? the app delegate?
great video! thanks!
Thanks! Glad I could help :)
All is fine until 9:22 when I get an error on
GIDSignIn.sharedInstance().handle(url)
It says : Missing arguments for parameters 'sourceApplication', 'annotation' in call
Yeah you need to add that param and pass in self :)
@@iOSAcademy Sorry, that's not clear to me.
I've tried:
and that seems to work.
@@iOSAcademy wdym ?
is it possible to make this google sign in with Webview?
how i can get UID of user??
Its off the user.profile object
No such module as fire base help
Good Job ! 👍
Thanks!
Love the video!! One thing I found while testing it was when I clicked the button to sign in then pressed cancel, the app would crash. How can I fix this bug??? Keep up the great work!
thanks! Hm, it shouldnt crash. A crash log would help
@@iOSAcademy
IT WILL HELP YOU TO SOLVE THIS PROBLEM. THIS PROBLEM IS OCCUR BECAUSE OF NOT HANDELING NIL IN (CURRENT USER). IF YOU WILL PRESS OPTION BUTTON AND CHECK (CURRENTUSER) TYPE. THEN YOU WILL SEE IT IS FORCE UNWRAPPED. YOU NEED TO HANDLE FORCED UNWRAPPED WITH THE HELP OF THIS FUNCTION ( GIDSignInErrorCode.HasNoAuthKeyInKeychain.RawValue).
Just Copy it and paste into your AppDelegate file.
extension AppDelegate: GIDSignInDelegate {
func sign(_ signIn: GIDSignIn!, didSignInFor user: GIDGoogleUser!, withError error: Error!) {
// Check for sign in error
if let error = error {
if (error as NSError).code == GIDSignInErrorCode.hasNoAuthInKeychain.rawValue {
print("The user has not signed in before or they have since signed out.")
} else {
print("\(error.localizedDescription)")
}
return
}
// Post notification after user successfully sign in
NotificationCenter.default.post(name: .signInGoogleCompleted, object: nil)
}
}
This code not authenticate with firebase I not found Google account in user in Firebase
Where can I find the video about Cocoa pods?
You can search this channel
I have this error: Thread 1: Exception: "presentingViewController must be set." Which makes the app crash whenever I click the google sign in button. How can I fix it?
Yes, i am facing the same error.
This is a solution to your error. You can extend your Delegate with this extension it will solve your error.
extension AppDelegate: GIDSignInDelegate {
func sign(_ signIn: GIDSignIn!, didSignInFor user: GIDGoogleUser!, withError error: Error!) {
// Check for sign in error
if let error = error {
if (error as NSError).code == GIDSignInErrorCode.hasNoAuthInKeychain.rawValue {
print("The user has not signed in before or they have since signed out.")
} else {
print("\(error.localizedDescription)")
}
return
}
// Post notification after user successfully sign in
NotificationCenter.default.post(name: .signInGoogleCompleted, object: nil)
}
}
stackoverflow.com/a/64532164/4819445
Documentation has changed and video is out of date
New one coming soon
@@iOSAcademy thank you!
@@iOSAcademy YESS
@@iOSAcademy good afternoon, and when will the new video on this topic be released?
Hi! Thank you for tutorial. Is it possible to customize that button. For example, if I want to put just Google icon or label "Sign in with Google"?
Youre welcome! Yep, you can absolutely use a custom button as long it meets google brand guidelines
Noice video tutorial, thanks for sharing it
One question, why did you set AppDelegate as GIDSignInDelegate and not your ViewController? Any specific reason?
Thanks. Bc Google does a callback for App to launch. I think it has changed since then
Hello, I got a error when I clicked the Sign in button and showed me " terminating with uncaught exception of type NSException " and showed thread 1 signal SIGABRT where the class app delegate is made. Pls help!
Can you paste the whole error here please. Either you have not added the url type, set the delegate, or set the presentingController in your view controller
@@iOSAcademy how do I set the presenting view controller
I get zsh: command not found: pod
You need to install pods
you so good
Thanks! Glad you like the videos :)
@@iOSAcademyi like it
can we get the mobile number associated with the google login ?
Yes, its off the user object
iOS Academy how to retain sign in after restarting the app. Like for the scene delegate routing .. in checking for current user and it says nil... any specific thing need to be done
can you create new without firebase google log in version tutorial series ?
Sure, added to my list :)
@@iOSAcademy thank you :)
@@iOSAcademy And ı have a one question for you :). What is mean 'silent sign in' me 2 don't found in auto comp. I wanted to ask what it does
nice
i am tried But showing blur screen after click google sign-in Button. What is the issue?? Kindly give reason