You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First, thank you for the amazing Fetch2 library—it’s been incredibly useful for managing downloads in our projects!
I’d like to propose a feature enhancement that could be valuable for many use cases: per-request notification control. Currently, Fetch2’s NotificationManager applies globally to all downloads, which means it’s not possible to selectively enable or disable notifications for individual requests. This limitation can be problematic in scenarios where some downloads need to be "silent" (e.g., no notification) while others should display progress notifications.
Example Use Case:
Imagine an application where:
Some downloads (e.g., user-initiated media files) require progress notifications to inform the user.
Other downloads (e.g., background updates or preloaded data) should run silently without interrupting the user.
Suggested Solution:
Add a flag or property in the Request class to specify whether notifications should be shown for that particular download. For example:
Hi,
First, thank you for the amazing Fetch2 library—it’s been incredibly useful for managing downloads in our projects!
I’d like to propose a feature enhancement that could be valuable for many use cases: per-request notification control. Currently, Fetch2’s
NotificationManager
applies globally to all downloads, which means it’s not possible to selectively enable or disable notifications for individual requests. This limitation can be problematic in scenarios where some downloads need to be "silent" (e.g., no notification) while others should display progress notifications.Example Use Case:
Imagine an application where:
Suggested Solution:
Add a flag or property in the
Request
class to specify whether notifications should be shown for that particular download. For example:This flag could then be checked in the NotificationManager to decide whether to create and display a notification for that specific download.
Benefits:
I believe this addition would enhance Fetch2’s versatility and provide a smoother experience for developers and users alike.
Thank you for considering this feature request! Please let me know if I can provide more details or contribute to its implementation.
Best regards,
Álvaro
The text was updated successfully, but these errors were encountered: