# Share Target API — Progressive Web Apps

Source: https://www.geekswithgeeks.com/hi/pwa/pwa-share-target

> Users को other apps से अपने PWA के साथ content share करने दें।

## Shared Content को Receive करना

**Share target** आपके PWA को system share menu में appear करता है। Users अपने app में दूसरे apps से directly text, links या files को share कर सकते हैं।

## Share target को configure करें

Manifest में share_target को add करें और अपने page में shared content को handle करें।

```json
"share_target": {
  "action": "/share",
  "method": "POST",
  "enctype": "multipart/form-data",
  "params": {
    "title": "title",
    "text": "text",
    "url": "url",
    "files": [
      {
        "name": "file",
        "accept": ["image/*", "application/pdf"]
      }
    ]
  }
}
```

Output:

```
App appears in system share menu and receives shared content.
```
