Giter Site home page Giter Site logo

christophery / good-share Goto Github PK

View Code? Open in Web Editor NEW
10.0 1.0 5.0 1.57 MB

Good Share is a share button library with Web Share API integration.

Home Page: https://chrisyee.ca/good-share/

License: MIT License

CSS 5.57% HTML 9.02% JavaScript 67.11% SCSS 18.30%
web-share-api share-buttons javascript web-share share

good-share's People

Contributors

christophery avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

good-share's Issues

Not working in Samsung Internet (as in-app browser)

The web share API doesn't officially work in Samsung Internet browser but it should trigger the fallback share.

But when using the Samsung Internet browser as a in-app browser, the share buttons do nothing...not even the fallback share opens.

Steps to reproduce

  1. Set Samsung Internet browser as default browser.
  2. Email the Good Share demo link to yourself.
  3. Open the link using the in-app browser (I used Gmail).

Notes/Thoughts

  • It seems like the navigator.share feature detection is broken in Samsung Internet (in-app).
  • Works fine if page is viewed directly in the browser (not in-app)
  • Works fine using Firefox or Chrome (in-app and not-in-app)
  • Might be related to this Chromium issue

Lost param in in app browser: Facebook in app browser...

I have a case:
button share have param like [domain.com]/share?catid=1&product=2
in Chrome is ok
BUT
in facebook in app, when click share button, param ?catid=1&product=2 will lost, link on facebook only have [domain.com]/share?
Please check and we will fix.
I think we should encodeURI component

Encode special characters

Need to encode special characters in the share title, description and URL.

Can use encodeURI() and/or encodeURIComponent() functions

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.