Launching the native 'share'-popup on android/ iOS

Anybody tried to spread a text and/or pic from a playcanvas app on mobile?
In Unity you can make it work via plugins - not sure if there is a way from html!?
(mailto: is not really an option)

Thx!

When you talk about spreading a text or pic, what method of sharing were you thinking of? Via Twitter, Whatsapp, the native sharing capabilities etc?

Can you provide an example? Perhaps from another app as example?

Re-reading this, I realise now that you mentioned the native share bar. Looks like it is available via Origin-trials on Android: https://developers.google.com/web/updates/2016/09/navigator-share

Haven’t found a way to do this in Safari on iOS yet.

However, this doesn’t stop you from implementing your own share buttons in the webapp.

Here is tutorial written with images for Android Native Share with awesome code.

1 Like