wwdc20-10049

RSS for tag

Discuss WWDC20 Session 10049 - Keep your complications up to date

Posts under wwdc20-10049 tag

3 results found
Sort by:
Post marked as solved
230 Views

How to Keep Complications Up To Date 100% SwiftUI Independent Watch App?

The ‘Keep your complications up-to-date‘ WWDC20 session video used a kite flying app that was a WatchKit extension app. I’m planning on building a new 100% SwiftUI watch only (independent) app for watchOS 7 using Xcode 12 Beta and I’m wondering how I do complication updates in that case without the watch kit extension APIs used in the video session.
Asked Last updated
.
Post not yet marked as solved
379 Views

WatchKit Background Tasks in Swift UI App

I'm working through and following this great tutorial on how to keep complications up to date using background refresh, however I'm struggling to find out how to implement the functionality in a pure SwiftUI app. In order to handle background refresh tasks it is necessary to call this handler: func handle(_ backgroundTasks: Set<WKRefreshBackgroundTask>) Which is part of the WKExtensionDelegate protocol which isn't part of the new SwiftUI app structure. Is there a way to implement handling of background tasks as part of the @Main App protocol, without needing the Extension Delegate?
Asked Last updated
.
Post not yet marked as solved
159 Views

What is the max number of complication pushes per day?

In the WWDC 2020 session "Keeping your Complication up to date" the following is said: As we said earlier, fifty of these are allowed per watch, per day. I would like to understand if this means globally for all applications combined or whether that is in the context of a single application. In other words, if I have 3 different applications on my watch that all shows a complication that is updated through complication pushes, will these 3 apps compete for those 50 pushes in total? Does anyone know?
Asked Last updated
.