When I add the PWA to my Android device I would like to be able to directly share text to it from other apps, rather than having to copy and paste.
From a quick search I don't think this would be too difficult to add but would make my use of this app on Android much easier and the experience would feel more native.
Currently the manifest looks like this:
{
"name": "Kagi Translate",
"short_name": "Kagi Translate",
"icons": [
{
"src": "/icons/web-app-manifest-192x192.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "maskable"
},
{
"src": "/icons/web-app-manifest-512x512.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "maskable"
}
],
"theme_color": "#ffffff",
"background_color": "#ffffff",
"display": "standalone"
}
I think if share_target is added to the manifest and handle the data it should get the site most of the way since you're already allowing queries via the URL params.
The only thing I can think of is decisions around what the target languages should be, but maybe something like:
If shared text is in the user's default language → translate to last-used target; otherwise → translate to default language
Though I don't know your infra and whether you already have a service worker setup, and maybe this is a much harder request than I had hoped!
Either way, would love some better PWA support or even better a dedicated app (but this is a huge ask).
Thanks for your help team, loving Kagi Translate so far 🫡 .