FirebaseのPhone認証で
the UIapplicationdelegate must handle remote notification for phone number authentication to work
が出たdelegateに
@main に
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)
}
を入れればOK