1. Home
  2. Blog
  3. Progressive Web App (PWA)

Make Your WordPress PWA a Share Target and an Open With App

Most of the work that goes into a progressive web app points outward. You add an install prompt, a splash screen, push notifications, a share button that sends your pages to other apps. All of that is your site reaching out to the device.

The less obvious step is letting the device reach in. A native app shows up in the share sheet when you share a link from the browser. It appears in the “Open with” menu when you tap a file. It answers special links that start with its own scheme. Those three hooks are what make an app feel like it belongs on the phone or the desktop rather than living in a browser tab.

An installed WordPress PWA share target does the same thing for your site. A visitor shares a link from another app, picks your app from the share sheet, and lands on the page you chose with the shared URL already filled in. Progressify, the DaftPlug PWA plugin, exposes this as a setting, along with two siblings: a URL protocol handler and a file handler. This guide covers what each one does, which sites should use them, how to configure them without breaking anything, and how to test them.

What Progressify actually ships here

All three settings live in Progressify > Settings > App Capabilities, in the group the documentation calls System integration. That tab exposes browser features that a normal website cannot use but an installed app can. Here is the exact scope, taken from the Progressify docs:

  • Web Share Target. Makes your app a destination in the device share sheet, so a visitor can share a link or text from another app straight into yours. You set a Share Action (the path that receives the share) and a URL Query (the query parameter the shared URL arrives in). The documentation suggests pointing the action at your search or submission page.
  • URL Protocol Handler. Registers your app to open a custom URL scheme, so a link like web+example:something launches your app and passes it the URL. You set a Protocol and a URL. Custom schemes must begin with web+, and the URL field is the path in your app that receives the value.
  • File Handler. Lets your app appear in the operating system’s “Open with” list for file types you choose. You set a File Action (the path that handles an opened file) and pick MIME types under File Types.

On licensing, the Progressify free vs Pro table lists the URL protocol handler and the web share target in the free column, and the file handler in the Pro column. The settings page marks File Handler as Pro for the same reason.

The file types you can claim are a fixed list. Images: image/png, image/jpeg, image/gif, image/webp. Audio: audio/mp3, audio/mp4, audio/ogg, audio/wav. Video: video/mp4, video/webm. Documents: text/csv, application/xml, application/json, application/pdf, application/zip.

Why these three settings matter

Think about how people actually move content between apps on a phone. They do not copy a URL, open another app, find a field, and paste. They tap Share and pick a destination. If your app is not in that list, the content goes somewhere else.

That is the gap a share target closes. A few real examples:

  • A recipe or bookmarking site. Someone finds a recipe on another site, taps Share, picks your app, and lands on your “save a recipe” page with the link filled in.
  • A link directory or community site. Members submit links. A share target turns submission into two taps from wherever they found the link.
  • A store with a strong search page. A visitor shares a product name or link from a chat message into your app, and your search page opens with it.

The protocol handler solves a different problem: links that should always open in your app. If you publish a guide that says “open this in the app”, a web+yourbrand: link does exactly that on browsers that support it, and passes the value to the path you set.

The file handler is the narrowest of the three, and the one to think hardest about. It puts your app in the “Open with” list for file types you choose. That only makes sense if your site does something with the file, such as a CSV importer, an image tool, or a document viewer.

Before you start: the platform reality

The Progressify docs are blunt about browser support, and this section is worth reading before you design anything around these features.

File handlers and protocol handlers are Chromium features. Safari and Firefox implement few of the capabilities on this tab. Where a browser does not implement a capability, the setting has no effect rather than breaking the page. Enabling one costs nothing on a browser that lacks it, but the docs warn not to build a workflow that depends on it.

Two practical consequences follow:

  1. Treat all three as an enhancement, never the only path. Your “submit a link” page still needs a normal form with a URL field. The share target just fills it faster for the people whose browser supports it.
  2. These belong to the installed app. The share sheet and the “Open with” list are operating system menus. In general a site has to be installed as an app before the system lists it there, which is why these settings sit next to the rest of the installed app features in Progressify.

There is also a timing detail from the Web App Manifest docs. Progressify writes these settings into the manifest, the JSON file a browser reads to decide what the installed app should look like. Changes take effect on the next install, and already installed apps pick most of them up when the browser refreshes the manifest. If you test right after saving and see nothing, that is usually why.

Setting up the Web Share Target

Start with the share target, since it is free and has the widest use.

Step 1: pick the receiving page

The share action needs a page on your site that does something useful with an incoming URL. The two natural choices, which the docs also suggest, are:

  • Your search page. On WordPress the default search lives at /?s=, so a share action of / with a URL query of s sends the shared value into a normal search.
  • A submission page. A page with a form, for example /submit-link/, that reads a query parameter such as url and prefills the field.

If you go with a submission page, make sure the form actually reads that parameter. Many form plugins support prefilling a field from a query string. If yours does not, a few lines of JavaScript on that page can copy the parameter into the field. Test this page in a normal browser tab first by visiting /submit-link/?url=https://example.com/ and checking that the field fills in. If that does not work, the share target will not either.

Step 2: fill in the two fields

Go to Progressify > Settings > App Capabilities and turn on Web Share Target. Then set:

  • Share Action: the path from step 1, for example /submit-link/.
  • URL Query: the parameter name the shared URL arrives in, for example url.

Save. Progressify writes the share target into the generated manifest.

Step 3: reinstall or wait for a manifest refresh

On your test device, either uninstall and reinstall the app, or give the browser time to refresh the manifest. A fresh install is the quickest way to know you are testing the new settings.

Step 4: test from another app

Open another app, find a link, tap Share, and look for your app in the list. Pick it. Your app should open on the share action path with the shared URL in the query parameter you named. If it opens on the homepage instead, check the path you entered. If it opens on the right page but the field is empty, the problem is the page reading the parameter, not the share target.

Setting up a URL protocol handler

The protocol handler is also free and takes two fields.

Choose a scheme

Custom schemes must begin with web+. Pick something short and tied to your brand, for example web+mystore. The full link then looks like web+mystore:summer-sale.

Choose the receiving path

The URL field is the path in your app that receives the value. A typical choice is a page that reads the value and routes the visitor, such as a search page or a landing page that looks up a campaign code.

Use it sparingly

A protocol handler is useful in a few specific places:

  • Links inside your own newsletters or documentation that should open the installed app.
  • QR codes printed on packaging or event material, where you control both ends.
  • Internal tools where staff install the app and you want links to land in it.

It is not a replacement for normal links on the open web. Browsers without support will not know what to do with a web+ link, so pair it with a normal HTTPS link nearby, for example “Open in the app, or view on the web”.

Setting up the File Handler (Pro)

The file handler is the Pro member of this group, and the docs include a warning worth repeating word for word: only claim a type you can actually do something with. Registering for PDFs and then showing an error is worse than not registering at all.

Good fits

  • A CSV importer. A membership or directory site where admins regularly import member lists or listings. Claim text/csv and point the action at the import page.
  • An image tool. A site that crops, compresses, or annotates images. Claim the image types it accepts.
  • A document reader or library. A site that displays PDFs or JSON data in a useful way.

Configure it

Turn on File Handler, set File Action to the path that handles an opened file, and select only the MIME types that path really handles. Save, reinstall the app on a Chromium browser on desktop, then right click a matching file in your file manager and look for your app under “Open with”.

The page at the file action path has to know how to receive the file. That part is your code or your form, not the plugin. Progressify registers the handler in the manifest so the operating system offers your app. What happens next is up to the page you point it at.

How to check the manifest

Every one of these settings ends up in the manifest Progressify generates, which it serves from https://example.com/?progressify_manifest=1. Open that URL in a browser and read the JSON. You should see entries for the share target, protocol handler, or file handler you turned on.

For a more structured view, the Progressify troubleshooting guide points to the browser’s developer tools. In a Chromium browser, open DevTools, go to the Application panel, and select Manifest. It shows the values the browser actually read and flags anything invalid. If an entry you expect is missing there, the browser has not picked up your latest settings yet.

One more thing from the troubleshooting guide: if you use a page cache or a security plugin, make sure the manifest and service worker URLs, including ?progressify_manifest=1, are excluded from caching and not blocked. A cached copy of an old manifest is a common reason new settings seem to do nothing.

Common mistakes

  • Pointing the share action at the homepage. The shared value arrives, but nothing reads it. Always point it at a page that uses the parameter.
  • Forgetting the URL query field. Without a parameter name, the receiving page has no reliable place to find the shared URL.
  • Claiming every file type. This is the one the docs warn about. Claim only what you handle.
  • Testing on Safari or Firefox and concluding it is broken. These are Chromium features. Test on Chrome or Edge.
  • Testing a stale install or a cached manifest. Reinstall, and exclude ?progressify_manifest=1 from your page cache.

How this fits with the rest of Progressify

These system hooks work best on a site that already behaves like an app. The same App Capabilities tab holds smooth page transitions, autosave forms, background sync, and the other capabilities that make an installed site feel native. The share target is also the natural partner of the outgoing share button covered in our guide to the WordPress PWA native share button. One sends your pages out to other apps. The other brings content from other apps back into yours.

If you have not installed Progressify yet, start on the free version. The share target and the protocol handler are both in the free column, so you can try the share flow today. The file handler, along with the rest of the Pro capabilities, comes with the DaftPlug Pro membership. One license covers Progressify and the other DaftPlug plugins (Lightify, Generatify, Rankify, and Snapshotify). You can compare plans on the pricing page.

Quick checklist

  1. Decide which page receives shared links, and confirm it reads a query parameter in a normal browser tab.
  2. Turn on Web Share Target, set Share Action and URL Query, and save.
  3. Add a protocol handler only if you control the links that will use it, and keep a normal HTTPS link beside them.
  4. Turn on File Handler only for file types a real page on your site can handle.
  5. Check ?progressify_manifest=1 and the DevTools Manifest panel for the new entries.
  6. Exclude the manifest from caching.
  7. Reinstall the app on a Chromium browser and test from the share sheet, a web+ link, and the “Open with” menu.

Done well, these settings are invisible until someone needs them. Then your app is simply there in the share sheet, in the right place, doing the right thing.