fix(ui): copy GCG to clipboard on Android in-app WebViews #151
Reference in New Issue
Block a user
Delete Branch "feature/gcg-export-android-fix"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Follow-up to the #150 diagnostic. Your on-device readings confirmed the root cause: both Android Telegram and VK expose no
navigator.shareAND nonavigator.canShare, so the export fell through to a Blob<a download>that those WebViews silently ignore.pickGcgDeliveryis now a 3-way decision:The copy is
VKWebAppCopyTextinside VK (also covers the desktop VK iframe, wherenavigator.clipboardis blocked) andnavigator.clipboardotherwise — the same clipboard path the #150 diagnostic's Share button already used successfully on your devices. AGCG copiedtoast confirms it.Unit tests cover the 3-way choice + copy/failed outcomes; i18n
game.gcgCopied(en+ru); docs updated. Verified: check (0/0), unit (357), build, e2e (160).