Git Product home page Git Product logo

Comments (6)

nothingismagick avatar nothingismagick commented on July 17, 2024 3

And here's the PR
#505

from tauri.

nklayman avatar nklayman commented on July 17, 2024 1

Would we want to "polyfill" the web notification api so that notifications work the same as in a browser?

from tauri.

lucasfernog avatar lucasfernog commented on July 17, 2024 1

Closed by #505
The notifications API is going to be accessible with the Notification WEB API. Currently we'll support title, body and icon.

Example:

Notification.requestPermission()
  .then(response => {
    if (response === 'granted') {
      new Notification('title', { body: 'some text' })
    }
  })

from tauri.

nothingismagick avatar nothingismagick commented on July 17, 2024

We didn't have this on our roadmap, but I like @nklayman 's idea for polyfilling. Nice one.

from tauri.

nothingismagick avatar nothingismagick commented on July 17, 2024

Seems like this would be a good library to use for that (behind a feature flag of course):
https://docs.rs/notify/5.0.0-pre.1/notify/

I think the right approach would be to make a tauri API that hooks into this feature that can then be called from JS or from RS

from tauri.

nothingismagick avatar nothingismagick commented on July 17, 2024

here's the branch where this is happening:
https://github.com/tauri-apps/tauri/tree/feature/notification

from tauri.

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.