diff --git a/ios/App/CoachLiveActivity/CoachLiveActivityWidget.swift b/ios/App/CoachLiveActivity/CoachLiveActivityWidget.swift index 7571aff..8b2efb9 100644 --- a/ios/App/CoachLiveActivity/CoachLiveActivityWidget.swift +++ b/ios/App/CoachLiveActivity/CoachLiveActivityWidget.swift @@ -15,6 +15,9 @@ struct CoachLiveActivityWidget: Widget { lockScreenView(context: context) .activityBackgroundTint(Color.black.opacity(0.55)) .activitySystemActionForegroundColor(.white) + // Tap sur la bannière Lock Screen -> ouvre /live dans l'app + // (qui présente CoachLiveView natif via openNativeLive). + .widgetURL(URL(string: "https://coach.hypnotruck.ch/live")) } dynamicIsland: { context in DynamicIsland { @@ -67,6 +70,9 @@ struct CoachLiveActivityWidget: Widget { .foregroundStyle(.red) .symbolEffect(.pulse, isActive: context.state.isLive) } + // Tap sur l'île (compact ou minimal) -> ouvre /live dans l'app. + // Pour la vue expanded, c'est le système qui gère le tap = ouvre l'app. + .widgetURL(URL(string: "https://coach.hypnotruck.ch/live")) .keylineTint(.red) } }