diff --git a/ios/App/App/Info.plist b/ios/App/App/Info.plist index 7a57999..9e97689 100644 --- a/ios/App/App/Info.plist +++ b/ios/App/App/Info.plist @@ -81,14 +81,6 @@ com.googleusercontent.apps.817483900105-amoanmsold3j3k71retpjuhvrknsuunh - - CFBundleURLName - ch.hypnotruck.coach.deeplink - CFBundleURLSchemes - - coachapp - - diff --git a/ios/App/CoachLiveActivity/CoachQuickWidget.swift b/ios/App/CoachLiveActivity/CoachQuickWidget.swift index 187fac3..7ee7481 100644 --- a/ios/App/CoachLiveActivity/CoachQuickWidget.swift +++ b/ios/App/CoachLiveActivity/CoachQuickWidget.swift @@ -141,13 +141,19 @@ struct CoachQuickWidgetView: View { .font(.caption2) .labelStyle(.titleAndIcon) - // Photo et code-barres OUVRENT l'app : la caméra exige le premier - // plan. Le widget économise les navigations, pas le lancement. + /* Photo et code-barres OUVRENT l'app : la caméra exige le premier + plan. Le widget économise les navigations, pas le lancement. + + URL **https** et non schéma custom : le projet route ses liens de + widget par Universal Links (entitlement associated-domains), comme + les widgets Séance du jour et Score de forme. Un `coachapp://` + n'est routé nulle part — l'app s'ouvrait alors sur sa dernière + page consultée, au hasard. */ HStack(spacing: 6) { - Link(destination: URL(string: "coachapp://meals?photo=1")!) { + Link(destination: URL(string: "https://coach.hypnotruck.ch/meals?photo=1")!) { Label("Photo", systemImage: "camera.fill") } - Link(destination: URL(string: "coachapp://meals?scan=1")!) { + Link(destination: URL(string: "https://coach.hypnotruck.ch/meals?scan=1")!) { Label("Scanner", systemImage: "barcode.viewfinder") } }