I'd like to show a few desktop notifications triggered from my firefox add-on but it seems like you can only show one at a time, from my testing. I am not sure if there is any official way to do this, since I did not find any mentions in the notifications docs https://developer.mozilla.org/en-US/Add-ons/SDK/High-Level_APIs/notifications, but I'll take a hacky way, too.
相关问题
- gactions CLI crashes on Windows when uploading goo
- My target SDK version is 25 but Google Play says a
- How to call firefox addon function with onclick in
- How does same-domain policy apply to background sc
- SQLite Storage in Firefox 3.0 +
相关文章
- Windows - Android SDK manager not listing any plat
- Firefox remembering radio buttons incorrectly
- Google USB Package isn't showing in SDK Manang
- CSS Firefox box-shadow and outline
- Progressive web app(PWA) vs Electron vs Browser ex
- XML Parsing Error in Firefox developer console
- firefox ondrop event.dataTransfer is null after up
- CORS request did not succeed on Firefox but works
Did you say hacky?
They won't stack (at least on OSX), and you might want to check what the default notification time by OS is before setting the delay to 5 seconds, but it's the best I can think of given the limitations of the notification module.
Not that you care, but I just show different notifications in my add-on depending on whether it's one or several; I feel like it's less intrusive.
Then you need to add an
onClick
tonotifOptions
that does something different depending on whether it's for one or many.