diff --git a/Airship/AirshipCore/Source/DefaultAppIntegrationDelegate.swift b/Airship/AirshipCore/Source/DefaultAppIntegrationDelegate.swift index 8e63ea5b1..5750859de 100644 --- a/Airship/AirshipCore/Source/DefaultAppIntegrationDelegate.swift +++ b/Airship/AirshipCore/Source/DefaultAppIntegrationDelegate.swift @@ -239,8 +239,14 @@ class DefaultAppIntegrationDelegate: NSObject, AppIntegrationDelegate { isForeground: isForeground ) { pushResult in lock.sync { +#if !os(watchOS) let result: UIBackgroundFetchResult = pushResult as! UIBackgroundFetchResult +#else + let result: WKBackgroundFetchResult = + pushResult as! WKBackgroundFetchResult + +#endif fetchResults.append(result.rawValue) } dispatchGroup.leave()