0
我々はurbanairshipにappdelegate完了ハンドラを渡し、最後UAAppIntegration.userNotificationCenterへの手動の都市飛行船の呼び出しは、completionHandlerを呼び出す必要がありますか?
func userNotificationCenter(_ center: UNUserNotificationCenter, didReceive response: UNNotificationResponse, withCompletionHandler completionHandler: @escaping() -> Swift.Void) {
UAAppIntegration.userNotificationCenter(center, didReceive: response, withCompletionHandler: completionHandler)
completionHandler()
}
または我々は
func userNotificationCenter(_ center: UNUserNotificationCenter, didReceive response: UNNotificationResponse, withCompletionHandler completionHandler: @escaping() -> Swift.Void) {
UAAppIntegration.userNotificationCenter(center, didReceive: response) {
completionHandler()
}
}
または我々だけで完了を渡すurbanairship完了内appdelegate完了ハンドラを呼び出すことでappdelegate完了ハンドラを呼び出します都会の看板への呼び出し(それから私たちはコードを持っていれば都市主義からの呼び出しの前に呼び出す必要があります)
func userNotificationCenter(_ center: UNUserNotificationCenter, didReceive response: UNNotificationResponse, withCompletionHandler completionHandler: @escaping() -> Swift.Void) {
UAAppIntegration.userNotificationCenter(center, didReceive: response, withCompletionHandler: completionHandler)
}
私は考えましたが、それは黒いボックスなので、何かを処理する場合に完了ハンドラを呼び出すかどうか、または私たちが都市に向けてはならない何かを処理するかどうかは言いませんか? – CiNN
SDKはオープンソースなので、実際にはブラックボックスではありません。コールバックは常にUAによって呼び出されます。 – ralepinski