Search code examples
amp-html

amp-social-share type="system" doesn't seem to work on Chrome Android


I'm trying to add a native share button on our AMP page with the simpliest code but the button keeps being hidden.

I know my phone + chrome supports the Web Share API as I've already tested the feature on a non-AMP page with regular JS. I tried looking at amp-by-example but they do not have a real example at hand... only some gifs. Here's the code they show:

<amp-social-share type="system"></amp-social-share>

Does anyone has an actual working <amp-social-share type="system"> button on a real AMP page where I could see?


Solution

  • EDIT: You must test your page via HTTPS when I changed the url from HTTP to HTTPS I see both icons on my android.

    <amp-social-share type="system" doesn't work on HTTP sites.