feat: add native share support for space invites #199

Closed
sakshamjain wants to merge 4 commits from sakshamjain/flotilla:feat/space-invite-share into dev
Collaborator

Description

This is a sub-issue of #118

This PR adds a native share button to the Space Invite flow using @capacitor/share, allowing users to share invite links directly via system share dialogs (e.g., WhatsApp, Messages, etc.).

Attached Images:
image.png
image.png

What’s included

  • Integrated Capacitor Share API (@capacitor/share)
  • Added native share button in SpaceInvite component
  • Improved input layout to accommodate share + copy actions
  • Added share icon asset

Testing Status

Web: Fully tested and working as expected responsively
Note on Mobile Testing: Android / iOS are Not tested yet

While testing on Android in Android Studio, the Spaces screen renders blank, which appears to be a known regression (as mentioned in the issue discussion)

Because of this:
Native share functionality could not be verified on the Android emulator
iOS testing was not performed

### Description This is a sub-issue of #118 This PR adds a native share button to the Space Invite flow using @capacitor/share, allowing users to share invite links directly via system share dialogs (e.g., WhatsApp, Messages, etc.). Attached Images: <img width="1439" alt="image.png" src="attachments/aa04f1df-70ca-4402-a1a7-6dc306a16bad"> <img width="1439" alt="image.png" src="attachments/a9527054-0bf1-4278-8a50-85b81fe3043d"> ### What’s included - Integrated Capacitor Share API (@capacitor/share) - Added native share button in SpaceInvite component - Improved input layout to accommodate share + copy actions - Added share icon asset ### Testing Status Web: Fully tested and working as expected responsively Note on Mobile Testing: Android / iOS are Not tested yet While testing on Android in Android Studio, the Spaces screen renders blank, which appears to be a known regression (as mentioned in the issue discussion) Because of this: Native share functionality could not be verified on the Android emulator iOS testing was not performed
159 KiB
411 KiB
sakshamjain added 1 commit 2026-04-14 14:06:27 +00:00
sakshamjain requested review from hodlbod 2026-04-14 14:06:48 +00:00
Owner

I'm getting the following error in Zen browser:

Uncaught (in promise) Error: Share API not available in this browser
    CapacitorException util.js:21
    unavailable web-plugin.js:73
    share web.ts:15
    p runtime.js:78

Go ahead and check canShare and hide the button if false. Looks good otherwise.

I'm getting the following error in Zen browser: ``` Uncaught (in promise) Error: Share API not available in this browser CapacitorException util.js:21 unavailable web-plugin.js:73 share web.ts:15 p runtime.js:78 ``` Go ahead and check `canShare` and hide the button if false. Looks good otherwise.
sakshamjain added 1 commit 2026-04-14 17:36:18 +00:00
Author
Collaborator

Hi @hodlbod , Thanks for the input. Implemented Share.canShare() check and conditionally render the share button to avoid errors in unsupported browsers. Also added a guard inside shareInvite for safety.

Hi @hodlbod , Thanks for the input. Implemented Share.canShare() check and conditionally render the share button to avoid errors in unsupported browsers. Also added a guard inside shareInvite for safety.
sakshamjain added 1 commit 2026-04-14 17:58:38 +00:00
Owner

Merged via 7a7af58f

Merged via 7a7af58f
hodlbod closed this pull request 2026-04-16 17:16:47 +00:00

Pull request closed

Sign in to join this conversation.