Skip to content

Include the game link in native card shares on phones - #16

Merged
athrvk merged 1 commit into
masterfrom
claude/init-7ts3xc
Aug 27, 2026
Merged

athrvk merged 1 commit into
masterfrom
claude/init-7ts3xc

Conversation

@athrvk

@athrvk athrvk commented Aug 27, 2026

Copy link
Copy Markdown
Owner

What

On Android, share targets that receive a file only reliably read the text member of navigator.share; the separate url member gets dropped (platform behavior, w3c/web-share). So the victory card arrived in the picked app with no game link. The fix folds the URL into the shared text inside shareCardImage, still passing url for platforms that honor it, which covers both the save/share card button and the platform chips.

Note on the chip behavior itself: opening the OS share sheet (instead of the platform app directly) on phones is intentional; the sheet is the only way to attach the card image, and the Web Share API cannot preselect a target app.

Validation

  • game.spec.js green, including the native-share test which now asserts the shared text contains the link.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Rs2vdovnTd4RjchV1b5dnF


Generated by Claude Code

On Android, share targets that receive a file only reliably read the text
member of navigator.share; the separate url member gets dropped, so the
victory card arrived with no link. The url is now folded into the text
while still being passed separately for platforms that honor it. The
native-share e2e test asserts the link reaches the shared text.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Rs2vdovnTd4RjchV1b5dnF
@athrvk
athrvk merged commit bc25983 into master Aug 27, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants