Closed status302 closed 7 years ago
sometimes initial setup doesn't work on simulator, please try on actual device.
@aslanyanhaik didn't work too.😔
@qiuncheng have you done the point 6?
Go to Firebase Console, select your project, choose "Authentication" from the left menu, select "SIGN-IN METHOD" and enable "Email/Password" option.
If yes, try to change the User.swift
file, adding a log in the registerUser
function;
FIRAuth.auth()?.createUser(withEmail: email, password: password, completion: { (user, error) in
/// Log Msg
if let error = error {
print(error)
}
/// Log Msg
@gscalzo THX.🙃 I did point 6, useless. Now try to log msg. Hope helpful.
have you updated the pods?
@aslanyanhaik Yes, I did. 😟, Maybe because that ?
@qiuncheng have you verified your email? Did you get an email with a verification link?
@matsmats No, didn't get any email.
@matsmats email verification has nothing to do with functionality. @qiuncheng please delete the app from device/simulator and run again. I have checked, works perfectly.
@aslanyanhaik When I log the error in my device, I get this.
Error Domain=FIRAuthErrorDomain Code=17023 "An invalid API Key was supplied in the request." UserInfo={NSLocalizedDescription=An invalid API Key was supplied in the request., error_name=ERROR_INVALID_API_KEY}
So what the invalid API Key
means?
API Key is stored in "GoogleService-Info.plist". Seems like it's missing or is not target member. Try to redownload it and on dragging to xCode check "Copy items if needed"
@aslanyanhaik Oh, thx, it worked.😋
Did as your readme, but 'Wrong input paramets' always show, whatever login or register.