Comments (6)
Hi @ashokkumars! 😄 Are you familiar with the queuePosition
property when calling banner.show()
? Or are you stating that you may have a notification that makes all other banners on the queue completely irrelevant, thus they should never be shown?
from notificationbanner.
Hey @Daltron. I am aware of the queuePosition. But lets consider this case. I am calling 3 or 4 webservices in a class and all of them for some reason gets failed. All the error messages will be added to a queue. But before all banners gets shown (from the queue), if the device network gets disconnected, I need to show another banner which is for the network disconnect. After this banner is shown, showing webservice error banners is of no use. So, I felt like, there should be a method, which should allow me to clear the existing banner queue. This is just one use case, there can be many other cases as well.
from notificationbanner.
@ashokkumars Ok perfect, thanks for explaining! I just added this functionality to the v1.4.1 release! 🎉
from notificationbanner.
Hi, it looks like removeAll() is not there any more in 1.4.2. I also thought it would be quite useful to be able to remove all queued notifications. Is there a chance it will be put back or should we stick with 1.4.1 for now?
Edit: I think this functionality would also be useful if a user presses several things that trigger notifications in one view, they don't all get shown but are queued. The user then switches to another view. Now in the other view these notifications may be irrelevant and would come as a nuisance.
Also, it seems that the method removeAll is private in 1.4.1.
from notificationbanner.
Hi @firvorski! 😄 This was an accidental mistake! It is now included and public in the 1.4.3 version! Thanks for bringing this to my attention! 👍
from notificationbanner.
You da man!
Thanks a lot.
from notificationbanner.
Related Issues (20)
- Banner style extension
- StatusBarNotificationBanner onTap not working
- Main Thread crash HOT 3
- iPhone Dynamic Island HOT 1
- NotificationBannerQueue needs to depend on a protocol (Liskov principle)
- SwiftUI HOT 4
- The position of the banner on the screen when changing orientation HOT 2
- Why disallow background color for custom views? HOT 1
- App crashes on nil bannerPosition when using `.applyStyling` HOT 1
- The banner has the wrong width when it is displayed on the primary view
- closure #2 in BaseNotificationBanner.dismiss(forced:) NSInternalInconsistencyException - Must have a keyboard layer tracked.
- could not find module 'NotificationBannerSwift' for target 'x86_64-apple-ios-simulator' HOT 1
- customize the height
- Issue regarding position When 2 Banner whowing same time HOT 1
- sideViewSize no longer available
- CarPlay blocks the NotificationBanner
- How can I add layer border? HOT 1
- Screen flicker on ios 17 HOT 4
- SnapKit dependency issues
- Request for updated iOS SDK version with the xcprivacy manifest HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from notificationbanner.