Code Monkey home page Code Monkey logo

Comments (4)

rwngallego avatar rwngallego commented on September 6, 2024

Sure @ivptr, this is something we could do, adding it to the backlog :) Thank you!

Internal notes:

requireInteraction: Indicates that a notification should remain active until the user clicks or dismisses it, rather than closing automatically. The default value is false.

https://developer.mozilla.org/en-US/docs/Web/API/Notification/Notification

from perfecty-push-wp.

ivptr avatar ivptr commented on September 6, 2024

Many thanks @rwngallego.

I think is a top priority issue, because auto disappearing significantly lowers the click-through rate.

OneSignal's plugin has "Hide notifications after a few seconds" setting having default value "Yes on Mac OS X. No on other platforms".

Explanation of possible values:

  • Yes: The notification hides itself after some time, depending on the platform.
    Windows: Up to 20 seconds
    Mac OS X: 3 - 5 seconds
    Android: Notifications persist in the notification tray

  • Yes on Mac OS X. No on other platforms.: Recommended. Mac OS X notifiations will disappear after a few seconds, but they can still be seen in the Notification Center.

  • No: This option will lead to a browser settings button being shown on Mac OS X notifications, which reduces the available length for the notification text.

from perfecty-push-wp.

rwngallego avatar rwngallego commented on September 6, 2024

We will implement it in a simpler way because right now we don't have browser detection. We can call it "Automatically hide notification after some seconds" with two values: "Yes" or "No". When the user segmentation feature is implemented we might add a more advanced behaviour.

from perfecty-push-wp.

rwngallego avatar rwngallego commented on September 6, 2024

This has been released in v1.3.1

from perfecty-push-wp.

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.