Share Target Configuration for PWA

Enable HUBB24 to receive shared content from other apps

What is Share Target?

Share Target allows your PWA to appear in the native share menu on Android, iOS, and Windows. Users can share content FROM other apps TO your HUBB24 app.

Example Use Cases for HUBB24:

  • Share photos from gallery → Auto-create product listing
  • Share product description → Pre-fill listing form
  • Share product link → Quick reference listing
How to Fill Share Target in PWABuilder
Android Package Configuration

Copy these exact values:

/pages/AddProduct

The page that handles shared content

GET
application/x-www-form-urlencoded
Title:title
Text:text
URL:url

These map to URL query parameters

Or paste this JSON if PWABuilder accepts it:

{
  "action": "/pages/AddProduct",
  "method": "GET",
  "enctype": "application/x-www-form-urlencoded",
  "params": {
    "title": "title",
    "text": "text",
    "url": "url"
  }
}
How It Works for Users

Step 1: User Shares Content

User is in another app (e.g., Gallery, Browser, Notes) and taps the Share button

Step 2: HUBB24 Appears in Share Menu

Your HUBB24 app icon shows up in the native share menu alongside other apps

Step 3: Content is Received

HUBB24 opens to the "Add Product" page with the shared content pre-filled

Step 4: User Completes Listing

User fills in remaining details (price, category, etc.) and publishes the product

Testing Share Target

On Android:

  1. Install your PWA from PWABuilder's generated APK
  2. Open Gallery app and select a photo
  3. Tap Share → Look for HUBB24 icon
  4. Tap HUBB24 → App opens with photo ready to list

On Windows:

  1. Install PWA from Edge/Chrome
  2. Right-click an image or text in any app
  3. Select "Share" → Look for HUBB24
  4. Content is shared to your app