Can a progressive web app be registered as a share option in Android? Can a progressive web app be registered as a share option in Android? android android

Can a progressive web app be registered as a share option in Android?


Since recently a PWA can register itself as a Share target, via manifest.json.

Please read more here: https://developers.google.com/web/updates/2018/12/web-share-target


Yes. Now, you can do it on Chrome for Android from version 71+.

Assuming you have all the basics of PWA nailed down (HTTPS, registered service worker, and manifest) you only need to add the following section into your manifest.json:

  "share_target":  {    "action": "/share",    "params":    {      "title": "title",      "text": "text",      "url": "url"    }  },

I wrote a more detailed tutorial if you get stuck at any stage.


No unfortunately that's not possible.

The intent system is useful mostly for native apps.

The only thing you can do is create URLs that are parsed as intents on an android device and passed to native apps but it can't go the other way around, i.e. from native app -> trigger intent -> web app. The main barrier to this is that there is no way for a web app to indicate it can handle an intent (done in native apps via the AndroidManifest).