At the moment I’m trying to share base64 image to facebook
I would like to use native share feature on playcanvas
but I can’t seems to use Navigator.share in playcanvas
Anyone get it to work before?
Would be grateful if anyone could help me, thanks
yaustar
September 28, 2020, 10:26am
2
YoZhun_Chia:
Navigator.share
That API is only available on certain browsers: Navigator: share() method - Web APIs | MDN
Please make sure you are testing on a supported browser and also check the API is supported before showing the button to share for the user.
Thanks! It gives me some insight on how should i do it
For anyone who try to do this
Navigator.share will only trigger on touchend
1 Like