[英]FireBase PhoneNumber Verification Error In Swift
I am implementing Firebase phoneNumber Verification in my Application. 我正在我的应用程序中实现Firebase phoneNumber验证。 Then error Generate in my Application :
然后在我的应用程序中生成错误:
If app delegate swizzling is disabled, remote notifications received by UIApplicationDelegate need to be forwarded to FIRAuth\\'s canHandleNotificaton: method.
如果禁用了app delegate swizzling,则需要将UIApplicationDelegate收到的远程通知转发给FIRAuth的canHandleNotificaton:方法。
you might missed to add this method in your AppDelegate 您可能错过了在AppDelegate中添加此方法
func application(_ application: UIApplication,
didReceiveRemoteNotification notification: [AnyHashable : Any],
fetchCompletionHandler completionHandler: @escaping (UIBackgroundFetchResult) -> Void) {
if Auth.auth().canHandleNotification(notification) {
completionHandler(.noData)
return
}
// This notification is not auth related, developer should handle it.
handleNotification(notification)
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.