very usefull.I'm really learning many things from your tutorials
@king0fcodesgooglee1906 жыл бұрын
very usefull thanks for your videos
@jasrioworldtravellerforcra54972 жыл бұрын
How to give next line in text attribute of navigator.share method
@MsDeadasdodo5 жыл бұрын
hey, looking for a solution, as whole internet did not give me an answer... when user *cancels* the sharing action sheet used (i.e. instead of picking an app to share via, they close the sheet by clicking outside or slide it down) the promise is NOT resolved. it resolves as an error but only on another click on the trigger link. this causes a lot of trouble on my side as you can imagine, as neither error or success handling gets triggered
@TheSanjay12342 жыл бұрын
hey, I'm trying to use this api but I'm getting an error "Failed to execute 'share' on 'Navigator': Must be handling a user gesture to perform a share request" on an android browser and I couldn't find any solution for this. could you please help me out on this?
@SteveGriffith-Prof3ssorSt3v32 жыл бұрын
It means that you can't call the method unless your code is triggered by a user action. If the user clicks on something then you can call a function that does the share.
@raeemmohammed11032 жыл бұрын
Can you do video on web share target api to share to a PWA?
@SteveGriffith-Prof3ssorSt3v32 жыл бұрын
As far as I know you can't share to a PWA. A PWA is still a website, which means that app you share to is the browser.
@fourteensierra5 жыл бұрын
Two years later and still unofficial with less than 50% support. Bummer, I wonder why?
@SteveGriffith-Prof3ssorSt3v35 жыл бұрын
caniuse says Safari is the only official support. However, web.dev/web-share/ the Google Developer site says it is supported for PWAs which means Chrome, FF, Opera, and now Chromium Edge too.
@roddvolume13324 жыл бұрын
How to change "Share Via" with whatever i want?
@SteveGriffith-Prof3ssorSt3v34 жыл бұрын
This API still does not have decent support in the browsers.
@edwinfernando12703 жыл бұрын
Will this work with PHP? Cause I tried it, it was working with HTML, but now after creating my site(using PHP) it's not working. That shouldn't be the issue I think, but still need some sort of confirmation.
@SteveGriffith-Prof3ssorSt3v33 жыл бұрын
It still has extremely limited support unfortuately - caniuse.com/web-share It's for client-side only scripting. You can't call it from the server.
@Gorr19955 жыл бұрын
hm "can I use" show the different result as You are showing here
@SteveGriffith-Prof3ssorSt3v35 жыл бұрын
It changes over time. This video is two years old.
@AlazTetik4 жыл бұрын
Still not supported by majority (at the end of 2020)
@SteveGriffith-Prof3ssorSt3v34 жыл бұрын
Yep. ☹
@Chapaez5 жыл бұрын
is it possible to share image?
@SteveGriffith-Prof3ssorSt3v35 жыл бұрын
You can share whatever url you want. The url can point to anything
@suvendubiswal68203 жыл бұрын
I need only point video why you all get this type of unusefull video I don't know,,, i want to share only images and videos to social platforms that's it if u know any good api then mention or go away
@SteveGriffith-Prof3ssorSt3v33 жыл бұрын
Every social platform has its own API. If you want to be able to upload your own content to them then you need to learn their APIs.
@suvendubiswal68203 жыл бұрын
@@SteveGriffith-Prof3ssorSt3v3 Thank you sir, sorry for being rude and for my rude comment because no api was working fine in my project so. Finally sorry.