Phone Auth with Firebase Can't find keyplane

General Tech Bugs & Fixes 2 years ago

0 2 0 0 0 tuteeHUB earn credit +10 pts

5 Star Rating 1 Rating

Posted on 16 Aug 2022, this text provides information on Bugs & Fixes related to General Tech. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.

Take Quiz To Earn Credits!

Turn Your Knowledge into Earnings.

tuteehub_quiz

Answers (2)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 2 years ago

 

I want to register with phone verification. But when I try to use the phone, it gives the following error. How can I solve the problem? So, I can't use the verification code to the phone. I'm using filebase pod. I'm getting this problem from the phone emulator. (iPhone X) It's okay to send a notification. I've tried with Postman and I don't have a problem getting notifications.

Error Code: Can't find keyplane that supports type 4 for keyboard iPhone-PortraitChoco-NumberPad; using 20603_PortraitChoco_iPhone-Simple-Pad_Default

    class RegisterViewController: UIViewController, FUIAuthDelegate {

    func sendCode(_ sender: Any) {
            FUIAuth.defaultAuthUI()?.delegate = self
            let phoneProvider = FUIPhoneAuth.init(authUI: FUIAuth.defaultAuthUI()!)
            FUIAuth.defaultAuthUI()?.providers = [phoneProvider]
            phoneProvider.signIn(withPresenting: self, phoneNumber: phoneField.text)
        }
    }

@objc lazy var registerbutton: UIButton = {

        let bt = TransitionButton(frame: CGRect(x: 115, y: 410, width: 150, height: 50))
        bt.setTitleColor(UIColor.flatMintDark, for: .normal)
        bt.setImage(UIImage(named:"reload"), for: .normal)
        bt.addTarget(self, action: #selector(registerButtonTapped), for: .touchUpInside)
        bt.setTitle("Kayıt Ol", for: .normal)
        bt.layer.cornerRadius = 10
        bt.layer.borderColor = UIColor.white.cgColor
        bt.titleLabel?.font =  UIFont(name: "AvenirNext-Bold", size: 18)
        bt.isHidden = false
        let colors1:[UIColor] = [
            UIColor.flatWhite,
            UIColor.flatOrange
        ]
        bt.backgroundColor = GradientColor(.topToBottom, frame: view.frame, colors: colors1)

        return bt

    }()

 @objc 
                                                
                                                
0 views
0 shares
profilepic.png
manpreet 2 years ago

This problem occurs in simulator. Have you tried using real device? Can you provide some more information, what exactly you can't do? I mean:


0 views   0 shares

No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.