Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions ios/happwn/happwnApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ struct HappwnApp: App {
if settings.backgroundRefreshEnabled {
BackgroundRefresh.schedule(minInterval: settings.minRefreshInterval.seconds)
}
// Refresh on cold launch. scenePhase starts at .active, so the
// .onChange below never fires for the initial launch — without
// this, updates (and their notifications) only appear after a
// manual pull-to-refresh. onChange still covers later
// background→active returns.
await coordinator.refreshAll()
}
.onChange(of: scenePhase) { phase in
switch phase {
Expand Down
Loading