Total newbie question.

Tl;dr - Can a progressive web app be registered as a share option in Android?

In Android, we can “Share” things to other installed Android apps. For example, let’s say I have Chrome for Android and the Google+ app installed on my Android device. I can share a web site which I am viewing in Chrome to Google+ by going to Chrome’s hamburger menu → Share… → Google+ (with a list of other installed native apps). Can a progressive web app be registered in this list of installed native apps? If yes, can you show me some examples or code labs? If no, is this feature in progressive web app or Android’s roadmap?

share|improve this question
up vote 3 down vote accepted

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).

share|improve this answer
1  
We've proposed an API to address this: Web Share Target. – mgiuca Aug 24 '16 at 0:28

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.