TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Push notifications are now supported cross-browser

258 点作者 twapi大约 2 年前

35 条评论

jmull大约 2 年前
&gt; Push messages can be particularly useful for applications that need to deliver timely, relevant information to their users, such as news or sports apps, or for e-commerce websites that want to send users notifications about special offers or sales.<p>Sure, they have their uses… but web sites will send far more notifications than anyone wants to receive. People would enjoy a drinking fountain but get a fire hose.<p>I don’t even think about it. I just click “no” (and curse under my breath for even making me do that) and move on.
评论 #35342020 未加载
评论 #35343030 未加载
评论 #35343766 未加载
评论 #35341807 未加载
评论 #35341337 未加载
noirscape大约 2 年前
Annoying fact is that every major browser silently installs itself into the startup process when you enable any browser push notification on Windows (with Edge being enabled for this by default iirc).<p>If you&#x27;re wondering why your only 2-year old Laptop is slowing down when you boot it up - this is why. Chances are that Edge, Firefox and&#x2F;or Chrome all three decided that they should have the right to run a full instance of themselves when you boot up your PC because you enabled a notification for a site that doesn&#x27;t ever send any to begin with.<p>Browsers are heavy things to boot up (not to mention that in potato RAM environments, they eat through RAM like there&#x27;s no tomorrow). To be clear, browsers being heavy applications is fine, it&#x27;s one application where people tolerate it because of how versatile the browser is, but it is <i>extremely</i> frustrating when it results in the computer taking 5 minutes to sign in, when all they needed to do was quickly revise a Word document.<p>The result is that people end up writing off perfectly serviceable laptops for something that is easily disabled in the task manager.<p>This sorta thing really should get a big warning popup that if you enable it, it probably will end up slowing down your PC. I can&#x27;t exactly celebrate the fact that all three major browser engines now pester users into slowing down their PCs.<p>Otherwise, if your relatives&#x2F;friends are complaining their laptop is slow (and you&#x27;re the designated IT person), enjoy the free advice.
评论 #35341084 未加载
评论 #35338405 未加载
评论 #35338402 未加载
评论 #35341442 未加载
评论 #35341408 未加载
评论 #35341890 未加载
dathinab大约 2 年前
Nice, I do like it it had show quite useful for certain use cases.<p>Pro:<p>- notifications without needing a account (and e.g. giving them your mail)<p>- notifications when you use a web app (e.g. mail), I just don&#x27;t want to install a app for quite a bunch of things, best it also works in situations where you simply can&#x27;t install an app (e.g. company computer)<p>- less persistent&#x2F;annoying then mail notifcation (through depends a bit on your OS notification manager)<p>Cons:<p>- less reliable<p>- less persistent then mail notification<p>- some sites try to push them on users, but then it&#x27;s a pretty good indicator for which site not to use<p>Os&#x2F;User Specific:<p>- I have seen cases where Windows displayed them quite intrusive and it was non obvious where they where coming from making it hard to disable them for a non tech versatile user.<p>Especially when it came to web mail clients, web messenger clients and some simple entertainment sites they have shown quite useful to me while the sites I visit normally don&#x27;t try to push them onto users in an annoying way.
评论 #35341684 未加载
grose大约 2 年前
I have been waiting for this for a long time. I run a small forum and have maybe 10 core users who use it a lot. It is a recreation of a forgotten kind of old forum but with some modern features. I would like users to be able to opt-in to push notifications when someone replies to their post or when they get a private message. I get Patreon support that breaks even for server fees but otherwise it is a labor of love. I am currently using a Telegram bot to send users pushes but I was always hoping Safari would finally relent so I could use the real deal. Thank you, browser vendors. I agree with most of the comments here that push messages are generally evil but this is a huge boon for small niche websites like mine that don&#x27;t have the resources to make a dedicated app.
评论 #35341345 未加载
评论 #35340676 未加载
raizer88大约 2 年前
The only way this should work is by requesting a user input that explicitly comes from the user. No auto-popup. Right now push are so abused that I always disable it on every parent&#x2F;friend&#x2F;cat browser.
评论 #35338091 未加载
评论 #35338263 未加载
评论 #35338072 未加载
评论 #35338083 未加载
seydor大约 2 年前
It&#x27;s a pity that the notification popups exist, they ruined notifications making them dead on arrival. It should be a browser setting UI somewhere so only motivated users can enable them. They can be useful. They should be an alternative to RSS. And they could remove a lot of bloat from app stores -- so many apps exist solely to capture the notifications channel
londons_explore大约 2 年前
I wish browsers would have some kind of reputation system for push notifications.<p>If most other users find push messages from a site useful, then allow them. Otherwise, don&#x27;t. Eg. Messages from ebay that say &#x27;you won the auction, please pay now&#x27; might have the majority of users wanting.<p>Whereas messages from engadget letting you know that there are 112 new trending articles might see a far lower user interaction rate.<p>I would like the browser to have a setting &quot;only allow push notifications from sites that the majority of other users interact with&quot;.
评论 #35340885 未加载
评论 #35341469 未加载
denton-scratch大约 2 年前
&gt; These messages can be used to alert the user of new content or updates, remind them of upcoming events or deadlines, or provide other important information.<p>Or even information that&#x27;s not important, I guess.<p>If a website has an update, well, sure they can &quot;push&quot; it; but why don&#x27;t they just push it to their production server? It&#x27;s obviously driven by the demands of advertisers, and any site that succeeds in pushing notifications my way is a site I won&#x27;t be visiting again.
Dalewyn大约 2 年前
I can&#x27;t recall a time, not even once, when I found pushnotifs in a browser useful or even desirable.<p>Even on my phone I block 99% of them because it&#x27;s all just noise.
评论 #35338256 未加载
评论 #35340588 未加载
评论 #35338026 未加载
评论 #35338203 未加载
评论 #35339439 未加载
评论 #35340142 未加载
评论 #35341455 未加载
评论 #35338098 未加载
评论 #35338230 未加载
评论 #35340435 未加载
评论 #35338224 未加载
评论 #35338111 未加载
评论 #35338845 未加载
bitL大约 2 年前
&quot;Deliver timely and useful notifications to your users.&quot; - somehow I doubt the &quot;useful&quot; part. It&#x27;s 99% just engagement noise to boost some PM bonus somewhere wasting precious time of users.
anonyfox大约 2 年前
From the business side, all cases I remember why management decided to have some &quot;native app&quot; (even if its just a wrapped web app), is because they REALLY want notifications. (ignoring for a moment most users don&#x27;t want them :-) )<p>So, does wthis mean we finally have the moment in time where PWAs start to be the best default choice instead of an appstore-app? I would appeciate that!<p>Too bad we&#x27;re entering a time right now where the concept of &quot;frontend engineering&quot; evaporates in favor of Chat-UX :&#x2F;
progbits大约 2 年前
&gt; This web feature is now available in all three browser engines!<p>I guess for practical purposes this is correct, but they should at least say &quot;all major browser engines&quot;. There are others...
julianlam大约 2 年前
This is great news... Unfortunate as I used to be bullish on browser based push notifications, but in reality they were never working reliably on mobile devices.<p>I use a web API for my SMS gateway, and implemented push notifications via Firebase. It didn&#x27;t matter whether I was using Fennec&#x2F;Firefox, Chrome, or Vivaldi, I would always cease to be notified the moment the browser was killed off by my phone.<p>I eventually got sick of it and ported the logic over to call ntfy.sh instead. Not a single missed message since.
评论 #35342977 未加载
vhiremath4大约 2 年前
Am I the only one who has basically disabled all notifications at this point? Even if I turned them on for a select few apps I would actually potentially want them for (Slack, email, Instagram), there is so much noise in those apps and I can’t differentiate between what I actually want:<p>“send me Slack notifications if it seems urgent from my boss or team”<p>“send me email notifications if it’s from a top enterprise customer”<p>“send me Instagram DMs only if it’s from someone I’m interested in dating”<p>^ These are the kinds of notifications I would want to hit the push threshold but there’s no way to do that. Maybe a useful application of LLMs?
评论 #35340695 未加载
评论 #35340820 未加载
评论 #35346891 未加载
评论 #35341063 未加载
评论 #35340700 未加载
评论 #35340868 未加载
评论 #35343984 未加载
评论 #35341583 未加载
评论 #35340799 未加载
otikik大约 2 年前
Deactivation of this feature, however, is done differently on every browser.
sberder大约 2 年前
There&#x27;s definitely a valid use case when building PWA apps. The problem in previous versions was the impossibility to change the notification service, it is now possible through the `PushManager`.
berdon大约 2 年前
This is a major deal for progressive web apps (PWAs) replacing native mobile development. Most native mobile apps have been able to be replaced by a PWA for at least the last 5 years but couldn&#x27;t, on iOS, if they needed notifications. Now we can say bye to all the native, cross-platform frameworks and just use PWAs.
schaunwheeler大约 2 年前
Lot of strong feelings here about push notifications :) I think it&#x27;s worth pointing out that (1) there are many people out there who find push notifications useful or even desirable, and (2) push notifications don&#x27;t need to suck. Most push notification are annoying nudges because tools that allow companies to send notifications only allow mindless mass blasts with maybe a bit of only-slightly-less-mindless segmentation scattered in. There are better ways to do it. I&#x27;m helping build one of those ways (aampe.com), but my point is that we should distinguish between the current state of the technology and the potential of the technology to meet a valid need.
评论 #35341834 未加载
评论 #35342399 未加载
noduerme大约 2 年前
Great, right when this stopped being a commercial goal because we explained to the execs that we couldn&#x27;t do it .<p>What a wonderful feature.<p>I&#x27;m gonna just quit and tell the boss to have GPT write the fuckin code for this. I&#x27;m sure that&#x27;ll work.
rustybolt大约 2 年前
Push notifications need to die.
评论 #35341297 未加载
评论 #35338328 未加载
评论 #35340898 未加载
评论 #35338271 未加载
cbeach大约 2 年前
I assume every service worker is constantly polling a server back-end, or, at least, has a long-running connection?<p>There are hundreds of service workers installed for me in Chrome (see: chrome:&#x2F;&#x2F;serviceworker-internals&#x2F;)<p>I recall on iOS, Apple&#x27;s infrastructure aggregates push notifications on the server-side, meaning an iPhone only has to maintain a connection to a single server for all push notifications.<p>Are there any similar initiatives for the Push API? Or is it simply not a priority, given the looser bandwidth&#x2F;CPU constraints on desktop computers?
评论 #35346854 未加载
ammmir大约 2 年前
I never enable push notifications for any websites I visit, but I think, as a developer, it would be interesting to easily add push notifications for internal apps. i.e., stuff that one would use a Slack hook for, I&#x27;d rather have a homescreen web &quot;app&quot; that can send pushes natively (albeit via a third-party push broker) rather than having to either build your own native app or use a messaging platform.
atum47大约 2 年前
I&#x27;ve been using push notifications for a while now. They can be very useful. I have a back end that send server events (PHP SSE) to my web app everytime a new there&#x27;s a new entry on a DB, which triggers a push notification. That&#x27;s how I did my sensor of presence [1]<p>1 - <a href="https:&#x2F;&#x2F;youtu.be&#x2F;D4wimodtpKk" rel="nofollow">https:&#x2F;&#x2F;youtu.be&#x2F;D4wimodtpKk</a>
MacroChip大约 2 年前
In my experience, web push notifications on Android do not show immediately (i.e. with high priority). They only show when your phone wakes. Does anyone know of a workaround for this?
weatherlight大约 2 年前
This is a step in the right direction.<p>Now that they are standardized across all modern browsers, standards around their governance will follow.
hartator大约 2 年前
How is that good? New ways to spam us?
Eumenes大约 2 年前
We need modern Pop Ups!!
评论 #35340414 未加载
bioemerl大约 2 年前
I have an app that makes very valid use of push notifications on the web. This should be celebrated because now you can do more without diving into the shitty apple app store with it&#x27;s 100 dollar a year fee.
quyleanh大约 2 年前
With more and more update recently, it&#x27;s seems that Apple doesn&#x27;t want to get another EU compliance rule of default browser?
simonsarris大约 2 年前
you can turn off these requests for all sites in:<p>chrome:&#x2F;&#x2F;settings&#x2F;content&#x2F;notifications
aedis大约 2 年前
Just make notification manager where I can see them all.<p>Like RSS READER.
bedane大约 2 年前
Thanks for contributing to making the web a worse place, little by little, brick by brick. It&#x27;s still barely usable but I trust that one day you and your peers will manage to make it unusable at all.
bearmode大约 2 年前
No, thank you
ar9av大约 2 年前
Apple supports them now. Everyone else has been doing it for years.
perryizgr8大约 2 年前
The first thing I do on any browser is to completely disable notifications, on PC and mobile both. There are zero legitimate use cases for this. If you need notifications, install an app.
评论 #35338133 未加载
评论 #35338315 未加载
评论 #35338839 未加载
评论 #35338235 未加载