Giter Site home page Giter Site logo

Join by link about milaap HOT 6 CLOSED

veddandekar avatar veddandekar commented on September 14, 2024
Join by link

from milaap.

Comments (6)

naman-modi avatar naman-modi commented on September 14, 2024

The user should also given an option to copy the link.

from milaap.

AnupNair08 avatar AnupNair08 commented on September 14, 2024

Tried working on this feature
The Web Share API doesn't support major browsers. Found it to not work on Chrome, Brave and Firefox.
Any alternatives?
@veddandekar

from milaap.

veddandekar avatar veddandekar commented on September 14, 2024

@AnupNair08
We could probably do something like, if Share API
is supported(mainly mobile browsers) then use that. If not, the use clipboard API to show the link and allow copy to clipboard instead.

This shows how we can easily add a fallback - https://css-tricks.com/how-to-use-the-web-share-api/

Our fallback could be be the much more widely supported clipboard API - https://developer.mozilla.org/en-US/docs/Web/API/Clipboard_API

from milaap.

naman-modi avatar naman-modi commented on September 14, 2024

Have a look at this: https://w3c.github.io/web-share/

  • Try this on your phone, and not on a laptop

Found it over here: https://web.dev/web-share/

Documentation: https://www.w3.org/TR/web-share/

So it doesn't work on Chrome, but works on Chrome(Android)
@veddandekar @AnupNair08

from milaap.

AnupNair08 avatar AnupNair08 commented on September 14, 2024

Please check #79
Desktop users can copy link and supported browsers can use Web Share

from milaap.

veddandekar avatar veddandekar commented on September 14, 2024

Good work @AnupNair08 !

from milaap.

Related Issues (20)

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.