Repository navigation
Description
Overview
A pairing link used to open Pulse only if the phone already knew the pulsecam:// scheme: camera apps ignore it in a QR code, and a mobile browser cannot tell whether Pulse is installed, so every host built its own interstitial with store-fallback timers (TimeHuddle's /pulse/open). Once in Pulse, the person saw only a host name: not where the video goes, nor how to get back to the host when the upload is done.
This issue is the app side of mieweb/pulsevault#83. A pairing link is now a Universal Link / App Link on mieweb.github.io (#267), and a link for a place carries display hints and a way back (#290, protocol 2.7). What's left: showing the host's outcome after an upload, watch links in the same https form, and the Android and cross-app device checks that were never recorded.
Current State
- https pairing links (done, Pairing links that open Pulse or the store, and survive the install (#252) #267).
app.config.tsdeclaresapplinks:mieweb.github.io(iOS) and an AndroidautoVerifyintent filter forhttps://mieweb.github.io/pulse/;scheme: pulsecamstays. Serve the app-association files for Pulse links mieweb.github.io#1 serves both association files at the domain root. - One parser for both forms (done, Pairing links that open Pulse or the store, and survive the install (#252) #267).
src/features/upload/pairing/deep-link.tsreadspulsecam://?…andhttps://mieweb.github.io/pulse/open#…(parameters in the fragment);+native-intentkeeps the router on the current screen. The pairing alert became a pairing sheet (pairing-sheet.tsx) with trusted servers. /pulse/openpage (done, Pairing links that open Pulse or the store, and survive the install (#252) #267).pages/open.html: Android goes to Play with the link as the install referrer, iOS copies the link on "Get Pulse" and opens the App Store, desktop shows a QR, and anpulsecam://"open it" link covers the installed-but-not-routed case.- Pairing through a store install (done, Pairing links that open Pulse or the store, and survive the install (#252) #267).
src/features/upload/pairing/deferred-pairing.ts: Android reads the Play install referrer (expo-application); iOS shows Apple's paste button on first launch, so no paste prompt. - Link hints (done, feat(links): a link for a place opens its recorder, names the draft and offers the way back #290, protocol 2.7). A link whose token carries a
refclaim is "for a place":label,name,appandreturnare read, cleaned and stored on the destination row (upload_destinations.label,app,return_url). The destinations sheet and the export picker show "label · app" with the host under it (destination-label.tsx). The export screen preselects the place's destination. - Way back (done, feat(links): a link for a place opens its recorder, names the draft and offers the way back #290, since refined). With a
returnURL, the export screen offers Open in browser · once the upload is in, on a tap only (PROTOCOL §3.1;webReturninsrc/features/upload/pairing/link-messages.ts,export-screen.tsx). Back to into the host's native app comes fromnativeReturn(src/features/upload/pairing/native-return.ts,docs/native-return.md), tracked in Register per-project native callbacks to return from Pulse to the originating app #347. - Outcome. Only PulseKit's upload outbox reads the status route's
outcome(src/features/upload/core/runner.ts,retire.ts), for the host catalog. The standalone app's upload manager never reads it, and no screen shows the host's note or reason. - Watch links. Not started. There is no
pages/watch, and the app opens no/pulse/watchlink. View links exist on the server side (viewLinksinsrc/features/upload/core/capabilities.ts,requestViewLinkinview-link.ts), and the draft's ⋯ menu offers Watch / Share (src/features/drafts/draft-card.tsx).
Decisions since this issue was written
- No
deliveryparameter. Protocol 2.7 (PulseVaultPROTOCOL.md§3.1) defineslabel,name,appandreturnonly, so thedirect/attachsentences and their different return timing are dropped. - The pairing sheet shows the server's host only, never the link's words. The hints are unsigned text from whoever built the link (§3.1). They name the destination in the destinations sheet and the export picker, not on the trust decision.
returnis never opened automatically. §3.1: a client MUST open it only on a tap. Its rule is theserverrule (https, or http to a private/dev address, no credentials), not "same host asserver". Custom-scheme returns go throughnativeReturn(Register per-project native callbacks to return from Pulse to the originating app #347).
Remaining Work
1. After the upload: show the host's outcome (standalone app)
- After the final PATCH, poll
GET {server}/artifacts/<id>/status(protocol 2.3) untiloutcomeis recorded or the link's grace period ends, showing the server'sprocessingstate rather than a progress bar stuck at 100 %. Showoutcome.noteoroutcome.reasonverbatim as the result line: "Posted to Huddle ✓", or "Kept: Ticket was deleted while the video was uploading". The parsing already exists insrc/features/upload/core/runner.ts(PulseKit's outbox); the standalone upload manager (src/features/upload/core/upload-manager.ts) doesn't call it. - The way back (Open in browser, or Back to from Register per-project native callbacks to return from Pulse to the originating app #347) stays a tap, shown with the outcome.
2. Watch links (later phase)
- Accept
https://mieweb.github.io/pulse/watch#v=1&artifactId=…&server=…&token=<view-token>: open the video in an in-app viewer (poster from the poster route, playback from the artifact route, captions as a track). Apages/watch.htmlpage plays it in the browser when the app is not installed. - Only a view token (View-only, short-lived watch token (separate from the upload-capable token) pulsevault#32), never the upload token. The app's own Watch / Share actions switch to minting a view link (
viewLinkscapability) when the server supports it. - Beat-mode playback (Beat-mode uploads have no watch link / post-upload verification #69) lands here once the server has a playback view over a pulse.
- No new app release is needed for the path itself: Android's intent filter already covers
/pulse/, and iOS paths come from the association file. - The link form is defined on the protocol side in Https Pairing Links With Destination and Return Info, and Watch Links pulsevault#83 (still open).
3. Device checks never recorded
#267 was tested on an iPhone against a test link host (morepriyam.github.io); Android was not run.
Acceptance Criteria
-
mieweb/mieweb.github.ioserves both association files at the domain root with no redirect; Apple's CDN shows the Pulse entry and Google's Digital Asset Links API returns both Play keys (Pairing links that open Pulse or the store, and survive the install (#252) #267). Still to record:adb shell pm get-app-links com.mieweb.pulsereportsverifiedon a Play-installed build. - On a phone with Pulse installed, scanning the https pairing QR with the system camera opens Pulse straight into pairing. iOS: done on the test host (Pairing links that open Pulse or the store, and survive the install (#252) #267). Android: not run.
- Android without Pulse: the QR goes to the Play Store (or one tap on the badge where the browser blocks it), and installing and launching Pulse lands on pairing with no re-scan. Built in Pairing links that open Pulse or the store, and survive the install (#252) #267, not run. Measure the referrer size limit.
- iOS without Pulse: "Get Pulse" opens the App Store, and after installing, Pulse offers to finish pairing with no paste prompt (Pairing links that open Pulse or the store, and survive the install (#252) #267, a dev build standing in for the store). Re-scanning after install also pairs.
- "Open it" on the page pairs when Pulse is installed but the link was not routed to it. Built, checked only in desktop Playwright.
- GitHub never receives the token (parameters travel in the fragment;
pages/open.htmlsetsno-referrer). - A
pulsecam://link from an older host still pairs (Pairing links that open Pulse or the store, and survive the install (#252) #267, iPhone). - The destinations sheet and export picker show
labelandappwhen the link carries them, and read as before when it does not (feat(links): a link for a place opens its recorder, names the draft and offers the way back #290). The pairing sheet deliberately shows the host only (see Decisions). -
: dropped, not in protocol 2.7.delivery=attach/delivery=directsentences and return timing - An unusable
returnis ignored, and a valid one opens on a tap after the upload (feat(links): a link for a place opens its recorder, names the draft and offers the way back #290; now labelled "Open in browser · "). Native app returns: Register per-project native callbacks to return from Pulse to the originating app #347. - After an upload the result line shows the host's
outcometext verbatim (Remaining Work §1). - Cold-start and warm-start Universal Link delivery verified from the camera app, the browser and a messaging app, on a real iPhone and a real Android device; list the pairs tested.
- Watch links (Remaining Work §2), with the view-token rule.
Out of Scope (for Now)
- The protocol text and schema, including the watch-link form (Https Pairing Links With Destination and Return Info, and Watch Links pulsevault#83).
- Server-side viewer-scoped playback and the beat-mode player (Beat-mode uploads have no watch link / post-upload verification #69, View-only, short-lived watch token (separate from the upload-capable token) pulsevault#32).
- Changing which draft claims a destination or the pool's single-use rule (upload: persist resume URL before first PATCH + destination claim race (offset parsing since hardened) #101).
- Hosts' own changes (mieweb/timehuddle).
- Native app callbacks (
nativeReturn): Register per-project native callbacks to return from Pulse to the originating app #347. - A dedicated link domain (e.g.
pulse.mieweb.org).mieweb.github.iois enough. - A self-hosted link page for orgs that refuse any third-party domain; the
pulsecam://form remains for them.
Related
- Https Pairing Links With Destination and Return Info, and Watch Links pulsevault#83 (protocol and package side)
- Pairing links that open Pulse or the store, and survive the install (#252) #267 https links · feat(links): a link for a place opens its recorder, names the draft and offers the way back #290 link hints and the way back · Register per-project native callbacks to return from Pulse to the originating app #347 native return
- Beat-mode uploads have no watch link / post-upload verification #69 beat-mode watch link · upload: persist resume URL before first PATCH + destination claim race (offset parsing since hardened) #101 destination claim race · home: a finished upload's Watch / Copy link lives in the draft's ⋯ menu, not an export-screen prompt #229 Watch / Copy link placement · View-only, short-lived watch token (separate from the upload-capable token) pulsevault#32 view token
- A Pulse Link Carries Its Destination, and One Table Delivers It timehuddle#654, #658 (the first hosts to use this)
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsReady
Activity
[-]Universal Links for Pairing, Destination Info on the Link, Return to the Host After Upload, Then Watch Links[/-][+]Universal Links on mieweb.github.io for Pairing (Store Fallback + Pairing Through Install), Destination Info, Return to the Host, Then Watch Links[/+]feat(pairing): https pairing links that open Pulse or the store, and …
feat(pairing): https pairing links that open Pulse or the store, and …
feat(pairing): https pairing links that open Pulse or the store, and …
feat(pairing): https pairing links that open Pulse or the store, and …
feat(pairing): https pairing links that open Pulse or the store, and …
feat(pairing): https pairing links that open Pulse or the store, and …
feat(pairing): https pairing links that open Pulse or the store, and …
feat(pairing): https pairing links that open Pulse or the store, and …
feat(pairing): https pairing links that open Pulse or the store, and …
feat(pairing): https pairing links that open Pulse or the store, and …
feat(pairing): https pairing links that open Pulse or the store, and …
feat(pairing): https pairing links that open Pulse or the store, and …
feat(pairing): https pairing links that open Pulse or the store, and …
feat(pairing): https pairing links that open Pulse or the store, and …
feat(pairing): https pairing links that open Pulse or the store, and …
Merge pull request #267 from mieweb/feat/universal-links