Sending an SMS with your code infinite loading screen Account kit IOS

有些话、适合烂在心里 提交于 2019-12-11 06:05:18

问题


I'm using Account kit for Login using Phone number.

let accountKit = AKFAccountKit(responseType: AKFResponseType.accessToken)
var pendingLoginViewController: UIViewController?

override func viewDidLoad() {
    super.viewDidLoad()
    pendingLoginViewController = accountKit.viewControllerForLoginResume()
}
@IBAction func loginWithEmail(sender: AnyObject) {
    let viewController = accountKit.viewControllerForPhoneLogin(with: nil, state: nil) as! AKFViewController
    viewController.enableSendToFacebook = true
    viewController.enableGetACall = true
    viewController.delegate = self
    present(viewController as! UIViewController, animated: true, completion: nil)
}
private func generateState() -> String {
    let uuid = NSUUID().uuidString.lowercased()
    return uuid
}

Got SMS form Account kit but app infinite loading "Sending an SMS with your code" it should be go next screen for enter login code.

Thanks in Advance.

来源:https://stackoverflow.com/questions/50112814/sending-an-sms-with-your-code-infinite-loading-screen-account-kit-ios

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!