r/javascript • u/vlucas • Feb 04 '19
The AdTech Industry is Ruining Web Push Notifications for PWAs
http://vancelucas.com/blog/the-adtech-industry-is-ruining-web-push-notifications-for-pwas/109
u/jbhelfrich Feb 04 '19
My "favorite" is all the sites that seem to be running this bit of javascript that asks if they can show you notifications before they actually send the request to the browser. That way, if you say no, they can try again later because they haven't actually been blocked at the browser level.
So many sites that should know better are doing this. Looking at you, Tom's Hardware.
7
u/ScientificBeastMode strongly typed comments Feb 04 '19
I agree that it’s annoying, and that it’s a form of gaming the system. But I definitely see why businesses would do it.
Pretty much any opportunity to increase engagement with visitors is beneficial to the business. Even if only 2% of visitors respond “yes” to that prompt, that’s a win in their book.
Businesses will respond to the incentives put in front of them. It’s hard to get businesses to act against those incentives based on moral conviction alone.
2
u/vlucas Feb 04 '19
For sure. This isn't the first time we've seen companies abuse features like this, and it certainly won't be the last.
19
u/mediumdeviation JavaScript Gardener Feb 04 '19
I mean, this is how web apps should do it, because the app can’t customise the browser prompt to, say, talk about what the notifications are for, so they have to create their own prompts. Web apps that request for geolocation, notification etc. permissions immediately on page load will be rejected immediately by most users. Now whether they keep trying to ask for permission every time is another thing altogether.
3
u/troglo-dyke Feb 05 '19
If they're going to do that they should do it after you've consumed enough of the content to make a decision.
Honestly it's better for them and the user
4
u/ThatSpookySJW Feb 04 '19
So if the request is not from the browser, you hit yes and then you hit no for the browser popup? Seems devious af.
-4
u/Asmor Feb 04 '19
Honestly, I don't mind that. What makes the "real" request obnoxious is that it's coming from the browser chrome. An inline modal on the website is fine.
61
Feb 04 '19
[removed] — view removed comment
14
u/smeijer87 Feb 04 '19
You're forgetting the:
what do you think of our website?
Feedback forms, before I'm able to see the site. Sigh...
4
7
u/MatrixEchidna Feb 05 '19
Honestly, every page that demands me to turn off adblocker in order to view it (and I can't cheese it with manually stopping loading after all meaningful content is loaded)... I just decide to exit the page. I can live without reading, it's better than yielding to that kind of bullshit.
5
Feb 05 '19
[removed] — view removed comment
4
u/alzee76 Feb 05 '19
I basically do the same thing, but with tampermonkey/greasemoney scripts, so I don't have to repeat myself.
1
2
u/robolab-io Feb 04 '19
It's kind of a Catch-22 though. These intrusive annoying options show results. I opted for a small modest sidebar sub box and I don't get many subscriptions. It could also be my content, though.
0
186
u/natcodes Feb 04 '19
I swear AdTech ruins everything they get their grimey hands on.
55
u/yubgjottrrfbjii Feb 04 '19
Advertising is the cancer of the human race. It infects every channel of communication eventually.
2
Feb 05 '19
Yeah, just wait till it steeps into our military comms. "We're outnumbered, I need orders Captain" *your message will arrive after this short word from our sponsor* "Men, suffer with ED no more-"
10
Feb 04 '19
Adtech is only a symptom of capitalism!
5
u/cancerous_176 Feb 04 '19
Rather have to deal with ads than having all content be state sponsored.
35
Feb 05 '19
Nice false dichotomy
-14
u/cancerous_176 Feb 05 '19
The opposite of capitalism is communism. State owned media would exist in the opposite of capitalism.
1
u/cledamy Feb 10 '19
There are various systems proposed as alternatives to capitalism. Marxism just became the most prominent, but there have always been other opponents of capitalism with visions quite different from Marx.
2
u/cledamy Feb 10 '19
Just because a news source is receiving funding from taxes does not mean the state has editorial control. For example, there could be a system where the state matches contributions to news organizations from citizens using a mathematical formula that counteracts the free rider problem. In such a system, the private citizen’s contributions determine which news sources get funded not state bureaucrats. Therefore, the state has no editorial control and the news media can serve as a check on state power.
0
Feb 04 '19
[deleted]
18
u/vanderZwan Feb 04 '19
Uh... capitalism is not equivalent to trading and bartering, it's one specific form of it.
-6
u/darthcoder Feb 05 '19
Lol say what?
That is exactly what capitalism is. It doesn't need to include money, it just has to mean YOU control the means of production or the capital, not some oligarch or the government.
0
Feb 04 '19
[deleted]
15
u/vanderZwan Feb 04 '19
I feel like you're constructing a straw man against an opponent who doesn't even exist in the first place. Why would everything not-capitalism involve "somebody with a gun"? What is this hypothetical somebody with a gun supposed to represent? And finally: what is your argument that capitalism as actually practiced in reality (before we get no-true-Scotsmanned) does not involve violence? There are a whole lot of countries in this world that have been fucked over by capitalist forces. Just look up Operation Condor.
I like free markets, but equating capitalism with that is oversimplifying the picture.
-3
u/doitstuart Feb 05 '19
What is this hypothetical somebody with a gun supposed to represent?
The somebody isn't hypothetical and that somebody represents the state. The fight is between those who want to control and those who want to be free. It always has been and always will be.
Stop being so obtuse. Capitalism is synonymous with free markets and freedom to choose. That you suppose you have a more sophisticated understanding doesn't change that general usage of the term.
Just relax. When you read capitalism, unless it's blindingly obvious to the contrary, read: individual freedom, personal and economic.
3
Feb 05 '19
Dude, you need to relax. Capitalism utilizes free markets etc. But that does not mean that free markets cannot exist without capitalism. They totally can and do all over the world. Take some economics courses man, I'd like to explain it all to you but there's too much to correct you on here.
0
u/doitstuart Feb 05 '19
Based on that comment you couldn't explain it if you tried. No doubt your Marxist education has confused you about many things.
1
u/Patman128 Feb 05 '19
Capitalism is synonymous with free markets and freedom to choose.
No, capitalism is about individuals owning commercial property (the capital in capitalism, e.g. real estate, stocks, companies, means of production, etc.) and using your ownership of said property to make money (rent-seeking behavior). "Capitalism = free markets" is not true and is a common misconception. You can easily invent a fictional economy where individual people cannot own commercial property but are still free to trade goods and services in a free market.
2
u/doitstuart Feb 05 '19
Rent seeking doesn't mean what you think it does.
The freedom to use one's capital is a distinguishing feature of a free market. Real free markets can't exist by definition without the free employment of capital.
3
u/SarahC Feb 05 '19
Can you believe after the massive downvote you got that our schools are turning into marxist education camps?
It's chilling...
3
u/hedgeho9 Feb 05 '19
He's factually wrong and people here are just criticising ads and his ignorance, is it marxism? :D if so, a lot has changed since last time i've checked
1
u/cledamy Feb 10 '19
Trading and markets existed before capitalism. Capitalism is not just markets or trading but a larger institutional system with particular norms of property, contract and normalized autocracy in the workplace.
0
Feb 05 '19
[deleted]
4
u/ArmoredPancake Feb 05 '19
Whoa, since when a couple of neckbeards on Reddit represent "it people""?
2
u/Creflo_Bitcoin Feb 05 '19
How's the planet doing these days?
Any issues with the whole "humans blindly pursuing self interest" thing?
1
u/cledamy Feb 10 '19
Most socialist theorists recognize capitalism as the best system so far at improving production capability and living standards. They just believe that it has elements within it that will inevitably lead to its own undermining or that society can be organized more justly and efficiently than capitalism.
1
Feb 05 '19
when else in history did we have tech so advanced? I'd say the internet is what has enhanced the lives of humans more than some trade system. That way we can look up facts and see that capitalism is an atrocious system, and any system founded on the idea of infinite, perpetual growth will inevitably fail. Hence depressions/recessions every 30 years on the dot.
0
Feb 05 '19
[deleted]
1
Feb 05 '19
Okay, I hear you on almost all of your points, and differ only very slightly on a few.
You hit the nail on the head about ego driving humans forward. We should extend beyond IT people then, given what you said about their motivations, to creatives in general. It is rare that someone creates for creations' sake. But the psychological reasons behind these motivations will continue. As something loses value, one does not keep seeking it. Perhaps a creative would find another way to capitalize.
I think the future is headed toward automation. When everything including food production is made/raised by AI/machines, what will there be for the humans? So with a decreasing population in unskilled labor due to automation and population only ever increasing, what non-quasi-socialist method would you propose to help these people?
I know, they could cross train and get a job doing whatever we don't automate.
Or, pie in the sky, we can all hold hands and smile and automate everything and get rid of money. But, as you pointed out, how would these humans be motivated without money as a reward? Maybe they'd do it for the upvotes?
Now that I have successfully created a straw man, let's talk about issues today.
Democratic socialism is not antithetical, I don't think. Because at the heart of democracy is socialism. Think about it, is your vote more important/weighted than mine?
I think, and most people do this, that you are confusing socialism with communism.
I don't know who you've been reading on dem soc, but it might be that you have been misled. I think what really is meant is that we will be a democratically elected government with social fiscal policies.
Socialism works, too, mind you. Think Police, Firefighters, taxes, social security. It works in government, too. I point to many successful, current Socialist-style democracies in place in Europe today. However I don't see Americans ever jumping on board with this for a few decades at least.
The problem with socialism is when it becomes communism. Key difference is who controls the money. People have control of the government and market system in socialism, while the government (usually dictator) in communism is in control of those.
I don't know if you'll budge at all -most people don't- however I am hopeful that you will at least acknowledge that I have made decent counters, as I can see that your points are well-constructed, leading me to believe that you are thoughtful and perhaps able to see another side for what it is and not made out to be.
0
Feb 05 '19
[deleted]
1
Feb 05 '19
Very true to the first part about exploiting successes of others. My friend's dad runs his own body shop and complains of things of that nature keeping him from wanting to employ more people.
But the point of a business is to produce a good or service for a group of people or another business, and knowing that much when you dive in, you have essentially given in to the market for your good/service. So saying it sucks to have to be better to your employees than they will be to you may be related to saying it sucks to have to add this feature to my product or the market won't take it. In a sense. But we've seen what businesses (notorious outliers) are capable of doing to their unskilled labor when unregulated, such as factories in early 1900s. So learning from history we passed laws and OSHA etc.
Do I want people forgoing producing something for society to cash in their WIC cards and food stamps at Wal-Mart? Absolutely not.
I am just wondering, since automation is imminent, how would we solve this in a non-socialist way?
The only solution I see is a jobs program to train fast food cashiers (lol) and others to be able to program the machines and maintain them. But that even is quasi-socialist.
Humor me. What do you think is a good, non-socialist alternative to solving the problem of unskilled jobs diminishing? Do you agree that a free fed training program would incentivize, in however small a way, the otherwise unproductive population? What would you say could incentivize them in a better way?
I'd like an answer to the first part the most, the others are kind of rhetorical and, as they say in the courtroom, are leading the witness kinda like a straw man. Just wanted to show that socialism is not as evil as it is made to seem.
→ More replies (0)0
u/Creflo_Bitcoin Feb 05 '19
Giving to charity is essentially based in egoistic tendencies that every living human has which is to show others that he is a good person. And not just others, often the person we want to convince the most is ourselves.
Some good points, but this is just circular, sophist nonsense: just because you don't care about others doesn't mean that nobody does.
0
Feb 05 '19
[deleted]
0
u/Creflo_Bitcoin Feb 05 '19
Explore why people care about strangers. At the bottom you'll find self interest.
A common misconception, based on a tautology. What you'll really find is the realization that others suffer just as we do... so if we oppose suffering for us, simple consistency demands that we oppose it for them too.
"Unconditional love" is irrelevant. And nonexistent. Even a mother may abandon a child to die if its existence threatens her welfare or that of her other children.
5
Feb 05 '19
I'm getting Ads from Google Ads on Facebook. It's an ad company advertising ad service on another ad company's web. The whole business has gone full retard.
11
2
2
2
23
u/atubofsoup Feb 04 '19
Mobile apps have been killing push notifications for a while now. I'd disable them altogether if I didn't use them for things I actually care about: communication, reminders, etc. I've started just deleting apps that send me ads in PNs.
Maybe the solution is to treat PNs like email and add a spam filter.
9
Feb 04 '19
Nah, your solution is good.
If an app does this, there is no more app. Android lets you block specific notifications, but I'd rather just remove the app.
Same for web, the latest on my ban list is actually reddit. They pushed me some "trending in r/..." message, never again.
5
u/robolab-io Feb 04 '19
I immediately uninstall unearned notifications. Word with Friends started bugging the fuck out of me with their daily advertisements to play for money and I had to uninstall.
1
1
1
u/ikeif Feb 04 '19
I just turn off notifications for any app that's not a messenger app. Removes all headaches and leaves notifications I actually care about.
4
u/tylerjwilk Feb 05 '19
I think a good browser fix would be to limit notifications to only PWAs that you have "Added to Home Screen". Adding to home screen is a good signal that you trust the app. Some browsers are already aware of when a PWA web app is launched natively.
2
u/Neekzorz Feb 05 '19
I really like the idea if that, completely agree. At the very least stop it from happening as soon as the site is loaded because it's getting ridiculous.
5
u/Fzzr Feb 04 '19
They were never good. Not once have I found web push notifications anything other than intrusive and annoying.
10
u/TwiliZant Feb 04 '19
I like the notification from CircleCI that my build passed. There are some use cases which ARE useful but like with almost everything, features get overused.
1
u/Fzzr Feb 04 '19
I can see that being useful if it's an interrupt that you're waiting for to do some work or such. Yet to come up for me.
1
u/aladyjewel Full-stack webdev Feb 05 '19
Oh, neat! Do you enable it in user settings? I should sign up for notifications that my push CI failed!
2
u/spacejack2114 Feb 05 '19
I use them with Slack and some other communication apps on desktop (as Chrome "apps".)
0
Feb 04 '19
[deleted]
1
u/Fzzr Feb 04 '19
Absolutely. Mail is mail, it should be checked when it's time to check the mail, not treated like a synchronous chat app (unless your job requires it, in which case my condolences).
2
2
u/crabmusket Feb 06 '19
This seems relevant: https://andrewchen.co/the-law-of-shitty-clickthroughs/
The abuse of channels like this is probably one of the reasons they become less effective. Of course, seeing push notifications as a 'channel' rather than as an enabler of vital functionality is the main problem in this instance.
2
u/ib4nez Feb 04 '19
I don’t know if I’m as cynical as the author. To me, it depends on the app I’m using.
I have most notifications on my phone turned off except for a small amount because it’s mostly just meaningless noise.
Why do you want your PWA to send notifications? Why do you want users to use your PWA?
If I visit a website for reading movie trivia that’s riddled with ads, there’s no way in hell I’m enabling notifications. If I’m visiting something similar to WhatsApp or something with real-time interactivity then of course I’ll enable them, else how am I going to effectively use the PWA?
Just show me, the user, why I should want to get notifications from you. I’m not going to give that permission without a good reason.
Just my opinion, though.
2
1
u/Arve Feb 04 '19
s/isruining/has ruined
In a desktop context, Reddit enhancement suite is the only application I've granted notification privileges.
On mobile? The last new app I granted notification privileges was Vipps (a Norwegian user-to-user payment service).
People too eager on pushing spam/ads has completely ruined notifications.
1
u/dtfinch Feb 04 '19
I disabled push notification prompts as soon as they came into use, and will never enable them for anything.
1
1
u/scanguy25 Feb 05 '19
Does anyone know of a plug in that auto denies request to allow push notifications?
2
u/Tiim_B Feb 05 '19
In chrome you can just change the default permission from "ask" to "block" afaik. On mobile so i can't check right now.
1
1
u/DerNalia Feb 05 '19
well, if an app is well designed enough, the notifications request will make sense
1
1
u/Dallas201 Jun 04 '19
Push monkey is also offering web push notification marketing. Give it a try folks.
-3
u/eggn00dles Feb 04 '19
this is hilarious. google is the largest ad-tech company in the world, they're the ones driving creation of all this tech.
they sure as fuck didn't do it for convenience sake. also saying they are ruined due to how popular they are? that's a contradiction. even if people turn them off (they won't, the number of people with a cellphone as their only computer experience, dwarfs people savvy enough to turn it off) companies won't stop using the feature.
ad-tech isn't ruining web push notifications, it's the reason they exist to begin with.
9
u/vlucas Feb 04 '19
Web push notifications were not created by Google. It is a web standard created by the W3C. See the Push API page for more details.
Web Push Notifications were also not created for convenience sake to push ads - they were created to allow the web as a platform to compete with native apps, especially on mobile devices. The intention of adding all these features for Progressive Web Apps was to allow the creation of fully functional web apps that can be installed on devices like mobile apps without having to use an intermediary like Apple's App Store or Google's Play Store.
The point of the article, if you read it, was that the original intent of the feature is in jeopardy now due to greedy and abusive adtech companies and the sites that use their products.
-4
u/eggn00dles Feb 04 '19
Web Push Notifications were also not created for convenience sake to push ads - they were created to allow the web as a platform to compete with native apps, especially on mobile devices.
Who knows or cares why they were created. The point is Google is pushing PWA's. Web push notifications make the technology attractive to advertisers. This helps adoption.
If you think the largest ad-tech company in the world doesn't have a vested interest in making their products as advertiser friendly possible, well I don't know what to say.
This childish fingerpointing at the 'slimy evil ad-tech' industry is ridiculous. Point it at Google then, like they are somehow more noble than anyone else in that industry.
6
u/vlucas Feb 04 '19
The article doesn't even mention Google at all. I also never said anything of nobility or that Google is better than anyone else. Nothing you are saying is grounded in any facts.
I agree that Google makes most of its money from ads (this is a fact from their public quarterly filings), and they themselves are part adtech with their AdSense products and acquisition of Doubleclick. No one here is saying that Google has nothing to do with adtech. The article just mentions all adtech companies in a broader sense.
-6
u/eggn00dles Feb 04 '19
Noone likes advertising. But what you're saying is completely upside down here. Ad-tech isn't ruining anything, it's driving the creation and adoption of a lot of tech.
4
u/luckyj Feb 04 '19
Google is one more ad-tech company, cool that you pointed it out. But other than that, the article is still valid. it doesn't focus (even mention) Google. The tech we are talking about wasn't made by Google. So why are you so focused on them and what is your point?
1
u/eggn00dles Feb 04 '19
you're selectively ignoring google because it goes entirely against the braindead insult being levied at ad-tech.
google is the primary company pushing PWA's. i've attended tech talks for things like polymer where they specifically point out how e-commerce and advertiser friendly PWA's are.
ad-tech drives innovation. despite people's best efforts to vilify it.
3
u/vlucas Feb 04 '19
Almost everyone who cares about the web is pushing PWAs. Google, Mozilla, Apple's Safari team, the web standards bodies, web developers and web advocates, etc. This is very much not just a Google thing, but yes, Google is a strong proponent of PWAs.
-2
u/huntersghost Feb 04 '19
Web developers can’t be trusted.
9
u/slgard Feb 04 '19
it's web marketers that are the problem, not the developers. devs hate this shit at least as much as you do, but they want their pay check so ...
2
u/iJonMai Feb 04 '19
I can confirm. Recently had to develop some of this stuff for my company and did not enjoy implementing it.
-5
u/Extract Feb 04 '19
Web devs are largely spineless sellouts.
It sure isn't their descision, but they could as well simply choose not to work at places that do the above, but rather in the million different jobs, from building/running Wordpress shops/sites, to complex web app development, to completely many completely different niches.
If those guys who are actually good at what they do stayed away from Ad-Tech, they could always find work at a similar (maybe a bit lower) pay level, and all those AdTech companies would have are very few good SWE's who simply don't care about the morality, and a hoard of juniors or otherwise talentless devs who really need that job.
But alas, as per my first sentence, those companies still find more than enough people to fill their ranks.1
u/R3DSMiLE Feb 05 '19
So, in short, people should resign themselves to a shitty situation because YOU don't like to click "no" on a window?
... From now on: I'm going to enjoy the shit out of implementing this shit, thinking how much I'm going to annoy little pricks.
1
u/Extract Feb 05 '19
Just the fact you said "implementing" rather than "designing" implies you're one of the devs who'd be "resigned to a shitty situation" if you didn't have this job, hence hardly the kind of dev I'd worry about to design really annoying stuff (one that good blockers don't remove).
1
u/R3DSMiLE Feb 05 '19
heh, second language and all. But if you're that curious, it isn't that hard to block adblockers. I made good money out of it, too.
just use html canvas and a runtime generated script.
1
u/Extract Feb 05 '19
What you described is not "blocking adblockers", it's smuggling graphic ads past it.
After all, the blanket functionality of an ad blocker in regards to such ads is basically being a blacklist of domains and/or js files. However, graphic ads are also not the ads that tend to really be annoying.
The real annoying ads, such as pop-unders or ads that hijack the page for a few seconds, tend to be much harder to make.Also, what you described might work for a small website with little traffic, but if a big enough site like Reddit tried something like that, it'd be pretty easy to wait a few seconds for the ads to render then remove the canvas (or even set a watcher if the website persistently tries to re-generate the ads).
See, it takes much longer to write a sophisticated ad than to write a script to block it. And the more traffic the site has, the probability that there is of at least one person in the crowd both capable and willing to write such scripts for an ad-blocker he contributes to grows exponentially.
0
u/DrudgeBreitbart Feb 04 '19
The issue is that even if it’s a new site still nobody wants notifications. Nobody REALLY wants more notifications pop up on their phone. I really don’t care who won the Super Bowl, or what new device Google is putting out, or what some idiot celebrity said today.
0
Feb 04 '19
[deleted]
26
u/vlucas Feb 04 '19
Exactly. Hence the blog post. It could be such a nice feature for mobile web apps to compete toe-to-toe with native apps - particularly in the messaging and communication space, but I don't think it's ever going to happen due to the rampant abuse from the adtech industry and complicit websites that use the tech.
15
u/jlobes Feb 04 '19
It could be such a nice feature for mobile web apps to compete toe-to-toe with native apps - particularly in the messaging and communication space, but I don't think it's ever going to happen due to the rampant abuse from the adtech industry and complicit websites that use the tech.
What? No, it's because, compared to native app notifications, the web browser push notifications feature set is a flaming pile of garbage.
I use native app notifications because I have control about what I'm notified about, who can get at me, and when that is okay. I can choose what types of notifications to show. They respect Do Not Disturb. There are categories and classes of notifications, and I can change their behaviors.
I don't get any of those features in a browser's push notifications. Clicking "Allow Notifications" is like setting every single notification on my smartphone to on, complete chaos. My browser doesn't have a "global push mute" like a phone's DnD mode. Some sites allow me to change what notifications I get, but that's not part of the standard and not at all common.
Really, the feature is just trash. It's like someone competent started designing this feature before sustaining a major brain injury, then finished development with no memory about what the world had learned regarding push notifications over the past decade.
6
u/robolab-io Feb 04 '19
I see, I agree with the article then. My opinion is a product of shitty practices.
2
Feb 04 '19
[removed] — view removed comment
1
u/robolab-io Feb 04 '19
I'm becoming more and more fond of the opinion that the world would be better without ads.
1
Feb 04 '19
It’s a necessary evil. Else the web would just be a bunch of paywalls. We’d have significantly less content.
1
1
u/SarahC Feb 05 '19
It wasn't like that t the beginning - people who wanted to share information (andporn) made it flourish.
The money came later.
1
1
Feb 04 '19
This is the correct take. This wasn't ever going to be a beneficial feature. AdTech didn't ruin it, they exposed it for the crap it is.
47
u/Asmor Feb 04 '19
There's a pretty simple solution here.
Browsers automatically block all attempts to enable push notifications from websites viewed in the browser. Not even possible to enable them manually. Completely blocked.
The request is only allowed if the user launches the PWA from a shortcut. Which is like 75% the point of making a PWA in the first place.
Boom, crisis averted. What do I win?