Post

Replies

Boosts

Views

Activity

Comment on How to properly share code between launch in background and launch in foreground?
Thanks Rico. I only used Live Activity and Core Location as 'examples' to explain my question. The heart of my question is: “if some observation triggers an app launch. Should the app launch also re-do the observation immediately so the newly launched process is again subscribed to things it needs?” If so then architecturally how should that be? The case of push-to-start token is a fairly simple case. Wondering what you should for app launches in background for CoreBluetooth / CoreLocation
Topic: App & System Services SubTopic: General Tags:
Mar ’25
Comment on Live Activity update push token
@Sumbo when app is launched, you get the token. Send it to the server. Then any time else when the token is updated, then whether app is in foreground or background, again update your server with the newer token. Once you do this, this means server 'always' has the updated the token — before it sends a live activity notification to app.
Mar ’25
Comment on How to Update Live Activity X minutes using BGTask
Thanks I read that and a watched a few wwdc videos. It just seems that if you're going to use BGBackgroundTask then you're not guaranteed to have a 'live-like' experience. Because the update for a 'live' experience is something that should happen within 2s - 20mins. But with BGProcessingTask it could turn out to be 2hrs when device is idle our end of night when device is charged. Or is it that an app that has a Live Activity gets promoted to have sooner and longer background time?
Topic: App & System Services SubTopic: Core OS Tags:
Mar ’25
Comment on App clips size issue after upgrading to Xcode 14
For a framework, once you strip debug symbols, then what else is there left for you to strip? Why is there another flag for STRIP_SWIFT_SYMBOLS? Does STRIP_SWIFT_SYMBOLS only strip non-external symbols? Like if a framework has non-external, then they're not needed for the main app binary. So you can strip them. Does STRIP_SWIFT_SYMBOLS affect the stripping of such non-debug non-external symbols? Like it will strip anything that's marked with internal, private in your Swift module?
Mar ’23
Comment on App clips size issue after upgrading to Xcode 14
For a framework, once you strip debug symbols, then what else is there left for you to strip? Why is there another flag for STRIP_SWIFT_SYMBOLS? Does STRIP_SWIFT_SYMBOLS only strip non-external symbols? Like if a framework has non-external, then they're not needed for the main app binary. So you can strip them. Does STRIP_SWIFT_SYMBOLS affect the stripping of such non-debug non-external symbols? Like it will strip anything that's marked with internal, private in your Swift module?
Mar ’23
Comment on WidgetKit crash on iOS Simulator
I was using a List and I got this error. It seems that anything interactive will cause this bug. References: https://stackoverflow.com/questions/63135404/why-do-some-views-appear-as-a-red-no-entry-sign-in-widgets https://developer.apple.com/videos/play/wwdc2020/10028/?time=707
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Mar ’22