Skip to content

Commit

Permalink
Fix watchOS
Browse files Browse the repository at this point in the history
  • Loading branch information
rlepinski committed Jun 15, 2023
1 parent 200fd65 commit f6f805f
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit f6f805f

Please sign in to comment.