aslanyanhaik / Quick-Chat

Real time chat app written in Swift 5 using Firebase
MIT License
1.84k stars 360 forks source link

Wrong input paramets always show #3

Closed status302 closed 7 years ago

status302 commented 7 years ago

Did as your readme, but 'Wrong input paramets' always show, whatever login or register.

aslanyanhaik commented 7 years ago

sometimes initial setup doesn't work on simulator, please try on actual device.

status302 commented 7 years ago

@aslanyanhaik didn't work too.😔

gscalzo commented 7 years ago

@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
status302 commented 7 years ago

@gscalzo THX.🙃 I did point 6, useless. Now try to log msg. Hope helpful.

aslanyanhaik commented 7 years ago

have you updated the pods?

status302 commented 7 years ago

@aslanyanhaik Yes, I did. 😟, Maybe because that ?

matsmats commented 7 years ago

@qiuncheng have you verified your email? Did you get an email with a verification link?

status302 commented 7 years ago

@matsmats No, didn't get any email.

aslanyanhaik commented 7 years ago

@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.

status302 commented 7 years ago

@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?

aslanyanhaik commented 7 years ago

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"

status302 commented 7 years ago

@aslanyanhaik Oh, thx, it worked.😋