[英]FireBase PhoneNumber Verification Error In Swift
我正在我的應用程序中實現Firebase phoneNumber驗證。 然后在我的應用程序中生成錯誤:
如果禁用了app delegate swizzling,則需要將UIApplicationDelegate收到的遠程通知轉發給FIRAuth的canHandleNotificaton:方法。
您可能錯過了在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.