Questions tagged [web-share]
63 questions
0
votes
1 answer
Using navigator.share() to detect mobile users?
I'm trying to detect if a user visiting my webapp is a mobile user or not. I've seen various implementations (example1, example2, example3) but none of them seem to be foolproof or recommended.
I have never seen anyone mention checking if…

AlbertL
- 11
- 4
0
votes
1 answer
nagivator.share get source of origin website from headers
Can we get the nagivator.share's source origin website/domain.
i.e., from where i am getting this request.
May be from the http headers.
So if i shared a text from site A to a pwa app B, I need to get site A from code.

shrw
- 1,719
- 5
- 27
- 50
0
votes
1 answer
Do a request cURL in php, using ip of PROXY LIST - webshare.io?
Hi I'm trying to use a proxy list ip to make a request to a website, but I can't. I keep getting an error in the cURL request in php.
Where am I doing wrong ?
$ request = curl_init ('https://www.webisite-request.com/');
curl_setopt ($ request,…

Borja
- 3,359
- 7
- 33
- 66
0
votes
1 answer
Web Share API Not Working On Some IOS Versions
I am using the Web Share API to allow downloading/sharing an image from my web app. I have followed the documentation and have it working well, however, on certain IOS devices the share API fails. I've noticed this happen on IOS 12, 14, and even 15.…

whoMe
- 227
- 2
- 13
0
votes
1 answer
Can't use Web Share API to share a file in my React typescript App
I am trying to run a WebApp which allows files sharing.
After few google search, I found Web Share API like the standard to do so.
According to the documentation it should works like this using plain JS
This is the code for html…
0
votes
1 answer
my web share API is supported by chrome in localhost but not supported once I host my website?
while i was working in localhost my web share code is working perfectly but when i hosted my website same code stopped working. my code is still working in localhost server but not in hosted server.
this is my code:

ritik soni
- 11
- 2
0
votes
1 answer
Blogger post content sharing
How to share the blogger post along with the link of the post using Webshare API or any other?. I want to share my blog post (Entire content) along with the link instead of sharing only post link. As of now I am using Navigator.share ()…

Vamsikrishna K
- 1
- 1
0
votes
1 answer
Beforeinstallprompt not getting called in in-app browser
I have a pwa1 which will open in in-app browser of pwa2. I have install button for pwa1. But in in-app browser beforeinstallpromt is not getting fired. Any workaround for this?

J C
- 194
- 10
0
votes
1 answer
webshare API multiple instances on same page
Hopefuly someone can assist/direct me here.
I'm making use of the webshare API on my site. The site contains an array of posts that will have a share link. This is built using a foreach and all have unique urls to use. I want to add a share button…

Liam Hooper
- 100
- 5
0
votes
1 answer
Add webshare api button with a dynamic link (wordpress)
I use codesnippet plugin to add a block to a page. I want to add a webshare api share button bellow that to share a link $store_url. How can i generate the code for it ?

Dazzle Dinil
- 1
- 2
0
votes
1 answer
navigator.share(file) doesnt work for audio files
I have this working function:
export const shareFile = (message: File) => {
const nav = window.navigator as any ;
const data = { files: [message], text: '' };
if (nav.canShare && nav.canShare(data)) {
navigator.share(data)
…

YTG
- 956
- 2
- 6
- 19
0
votes
1 answer
Promise reject on getting formData in WebshareTarget Handler
i constantly getting a Promise reject when i want to handle the POST Request in the service worker of my application. I like to send a file to my pwa and as of the documentation the POST request should have a form body which i can read with…

bgeissler
- 68
- 1
- 6
0
votes
1 answer
Identify the app to which user share using Webshare api
I am using webshare api in my app basically mobile browser. So far i am able to list the apps on my phone and share to a selected app. Is there a way to identify in response (then block) to which app it was shared.
here is the sample code
if…

Sajid Reshmi
- 21
- 1
- 6
0
votes
1 answer
Avoiding PWA to reload when using Web Share Target API
I'm working on a PWA that plays music.
It accepts shared URLs from other android apps via Web Share Target API.
The problem :
Whenever something is shared via the API (which uses GET request)I my PWA is reloded (as expected).
And the already playing…

amankrokx
- 52
- 5
0
votes
0 answers
Web Share API only works a single time in iOS Safari
I have a simple "share button" component in my React app that uses the Web Share API to share a link. Interestingly, in mobile safari it only seems to work a single time for a given pageload. Subsequent clicks on the share button result in the…

harryg
- 23,311
- 45
- 125
- 198