Navigator.share is undefined

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

That API is only available on certain browsers: https://developer.mozilla.org/en-US/docs/Web/API/Navigator/share

Please make sure you are testing on a supported browser :slight_smile: 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