I'm working on a PWA, which is a share-target as specified in the manifest.json. This PWA is installed (to the Homescreen) on my Android 8.1 device with Chrome 73 for Android.
When sharing web pages, this seems to work. I successfully receive the title and text parameters. Due to limitations of Android, I don't know if I'm ever getting the url parameter.
However, when sharing images specifically (so not just pages, links, text) by long-clicking an image in Chrome, and press "Share Image" - my PWA does not show up in the list of possible targets. Dropbox, Bluetooth, Telegram etc. do show up, but my PWA does not.
Question: how can I make my PWA show up for "Share Image" sharing?
manifest.json
{
"share_target": {
"action": "/#/share-target/",
"method": "GET",
"enctype": "application/x-www-form-urlencoded",
"params": {
"title": "title",
"text": "text",
"url": "url",
"files": [{
"name": "file",
"accept": ["*/*"]
}]
}
}
}
Changing to POST does not seem to work either:
manifest.json
{
"share_target": {
"action": "/#/share-target/",
"method": "POST",
"enctype": "multipart/form-data",
"params": {
"title": "title",
"text": "text",
"url": "url",
"files": [{
"name": "file",
"accept": ["*/*"]
}]
}
}
}