News for hackers. Stuff that matters.
Re:Vibration API by daguava on Saturday December 18, 2021 @12:43AM (#29602029)
The only time I've seen this functionality used IRL is when an ad network hijacks the browser and takes you to a scare/infection tab on mobile.

Take this out back and put it down next to the blink tag and chained alerts without auto dismissal.

Re:Vibration API by GranPC on Saturday December 18, 2021 @05:14AM (#29603355)
I use it in one of my web games. It's fully optional but people like to enable it. I wish it worked on iOS. Let's not vilify a perfectly good API just because some jerks use it to annoy users - there's a lot of value in having haptic feedback whether you're building a native app or a web app.
Re:Vibration API by FullyFunctional on Saturday December 18, 2021 @12:02PM (#29606124)
Exactly. Vibration, or tactile feedback, is very helpful for on-screen keyboards (it’s one of the feature that makes Free42 great), but I can’t use that in a web app which is frustrating.
Re:Vibration API by akersten on Saturday December 18, 2021 @12:47AM (#29602048)
Or just put it behind a permission prompt and quit ruining all the cool features of the web for the rest of us
Re:Vibration API by daguava on Saturday December 18, 2021 @12:49AM (#29602060)
I cannot think of a single time I want my phone to start vibrating in a web context outside of a very deep game integration.
Re:Vibration API by wtallis on Saturday December 18, 2021 @01:31AM (#29602252)
This and many other features need to be bundled up behind a single permission prompt that gives the domain permission to be an app instead of a web site—and that permission should probably come with stricter restrictions on loading third-party resources.
Re:Vibration API by Spivak on Saturday December 18, 2021 @10:50AM (#29605320)
It would be tough to make such a thing work because then every site would annoy you into being an app.
Re:Vibration API by bartaxyz on Saturday December 18, 2021 @01:29PM (#29607064)
In Chrome, there's already a toolbar displaying that you can install the website as PWA. In addition, a lot of websites already try to stop you from using the web in favour of using the app (e. g. Reddit). So, I don't see this as a new annoyance.
Re:Vibration API by wtallis on Saturday December 18, 2021 @01:41PM (#29607206)
Hence why the invasive permissions need to be paired with restrictions that impose a tradeoff and incentivize sites with a more traditional web page usage model to not classify themselves as app-style sites.
Re:Vibration API by hanniabu on Saturday December 18, 2021 @05:27AM (#29603408)
I can't think of a single time I wanted to allow push notifications or allow for my camera or mic to be accessed, but I can at least acknowledge that others may want this.
Re:Vibration API by legerdemain on Saturday December 18, 2021 @01:02AM (#29602122)
"Very deep"... is that subtle innuendo?
Re:Vibration API by daguava on Saturday December 18, 2021 @01:04AM (#29602129)
No. It isn't. And this isn't the place for that.

Edit: I was thinking of simulation gaming, such as racing (forced feedback, hitting the wall), Fishing (fish on the line, rumble as forced feedback, etc)

Re:Vibration API by legerdemain on Saturday December 18, 2021 @01:09AM (#29602152)
This is 100% the place for that. On the XBox Live Indie Games marketplace, the top-selling game was always a "scalp massager" game (or "game") of some sort.
Re:Vibration API by mechanical_bear on Saturday December 18, 2021 @11:56AM (#29606061)
I think previous poster is saying this is not really the place for titillating innuendo, or low effort jokes about such, which I’d tend to agree.
Re:Vibration API by legerdemain on Saturday December 18, 2021 @01:17PM (#29606923)
And I'm saying that teledildonics is a fascinating and rewarding area of consumer tech that 100% deserves a visible place on HN without resorting to hints and innuendo.
Re:Vibration API by ocdtrekkie on Saturday December 18, 2021 @12:53AM (#29602083)
This is done with a lot of features already: In practice, users click to authorize it, and then do not understand why their computers do scary things. Just putting stuff behind yet another permission prompt users do not understand is not an acceptable position.

I really feel a lot of people in Silicon Valley have not ever just sat back and watched a non-technical user use a computer: The state of the industry is woefully disconnected from actual user experience. I beseech anyone who thinks a permission prompt solves a problem, rather than creating one, to go to a senior living community, and just watch people use computers.

Re:Vibration API by Shared404 on Saturday December 18, 2021 @01:29AM (#29602246)
> go to a senior living community, and just watch people use computers.

Experiences like this make me wish there were chromebook like machines that didn't spy on users, because that's really the only ethical solution.

Non-technical users can have the locked down machines, with a way to opt in to a higher degree of access possibly, and power users can get the full machines.

I know this sounds elitist of me, but this is the only way I honestly see everyone getting what they want.

Re:Vibration API by captainmuon on Saturday December 18, 2021 @04:27AM (#29603122)
Having it without a prompt is also not a acceptable situation.

I think HTML should be split in web sites, and applications. If a page wants to use the camera, or vibration, etc., it should take you to "Programs & Features" or the Apps settings and say:

"This website XXX is a program, not a page. Do you want to install this program?"

I would even consider make the list of "programs" visible at all times on the edge of the last start screen page, and limit it to 12 programs or so, in order to prevent people from installing all kinds of junk.

Re:Vibration API by exciteabletom on Saturday December 18, 2021 @05:50AM (#29603506)
> I think HTML should be split in web sites, and applications.

You have reinvented native apps

Re:Vibration API by saurik on Saturday December 18, 2021 @01:32AM (#29602253)
The problem is that it isn't out place to decide that people simply aren't allowed to do something because they are too stupid or senile to be even given the option to do something they might actively want... I appreciate the intent, but the result still feels morally reprehensible (and I will note that, if it had been applied to computers from the beginning, most of the cool stuff we use wouldn't exist).
Re:Vibration API by ocdtrekkie on Saturday December 18, 2021 @01:41AM (#29602300)
I think it's a big stretch to say leaving the ability for a website to vibrate your phone out of the web standard is "morally reprehensible". Nor am I suggesting users are too stupid or senile: They just care less about the plumbing than the plumbers do.

The problem is when all your user experience studies grab folks from tech communities, you start to think people can or want to cope with your constantly evolving stack of features, when they probably just want to find out how to get to a restaurant that day.

Re:Vibration API by Spivak on Saturday December 18, 2021 @01:02AM (#29602123)
I’m totally fine with having features like this living in website settings but it should be non-promptable.
Re:Vibration API by dmitriid on Saturday December 18, 2021 @03:16AM (#29602775)
> Or just put it behind a permission prompt

There are now dozens of APIs requiring a permission prompt. Enough.

Re:Vibration API by ncann on Saturday December 18, 2021 @12:55AM (#29602092)
It boggles my mind why this doesn't require any permission. Every now and then I misclick on some sketchy ads and it's always the loud alert ringtone + alert popup + back navigation hijacking + my phone vibrating non-stop. I've never seen this vibration "feature" used for anything legitimate on the web, ever.
Re:Vibration API by ifdefdebug on Saturday December 18, 2021 @06:07AM (#29603579)
So there are still ads in the web? Thanks for the reminder. You really forget about that behind ff+ublock...
Re:Vibration API by LNSY on Saturday December 18, 2021 @10:40AM (#29605220)
I've been using DuckDuckGo's Privacy Browser. It has made the mobile web far more pleasant to use.
Re:Vibration API by throwaway894345 on Saturday December 18, 2021 @01:45AM (#29602321)
My favorite are the sites that somehow fill your browser history such that you can’t push the “back” button fast enough. No idea why browsers allow this.
Re:Vibration API by jon-wood on Saturday December 18, 2021 @05:20AM (#29603375)
A recent dark pattern I’ve seen is for news websites to add their home page to the history stack when you click a link to an article anywhere on that site so that tapping back doesn’t take you back to the page you were linked from.
Re:Vibration API by asddubs on Saturday December 18, 2021 @02:49AM (#29602638)
if you long press it, you'll get a list of sites, so you can just skip back multiple at once
Re:Vibration API by throwaway894345 on Saturday December 18, 2021 @09:38AM (#29604759)
Yes, but every item in that list is the spam link, so what’s the point?
Re:Vibration API by Taywee on Saturday December 18, 2021 @01:49PM (#29607300)
Browsers allow it because it's needed for single page apps and history-aware modals to function properly.
Re:Vibration API by phil294 on Saturday December 18, 2021 @04:10AM (#29603052)
How do you suggest web apps can be granted native app-like abilities, then, if not via a standardized browser API? PWA's are a thing, and arguably the future of app development (including wearable computers, the next big thing). If not: Least companies can afford to develop native solutions for every single manufacturer, granted there will be more than one. We'll be stuck with solutions like Cordova forever. A grim prospect on the future.

Another comment suggests bundled permissions for elevated apps, with a simpler prompt, if any. I think this is the inevitable way to go.

Re:Vibration API by AlexAndScripts on Saturday December 18, 2021 @12:09PM (#29606194)
And why are wearable computers the next big thing this time, and not a flop like all the other times they've been the next big thing?
Re:Vibration API by tjoff on Saturday December 18, 2021 @04:25AM (#29603112)
Why do you assume that is desirable? And why should PWAs be a thing?
Re:Vibration API by paraknight on Saturday December 18, 2021 @04:38AM (#29603186)
There are many reasons PWAs should be a thing, but one of the most important reasons is to be able to deploy apps to phones without needing to go through the app stores and complicated deployment setups.
Re:Vibration API by tjoff on Saturday December 18, 2021 @04:41AM (#29603206)
I don't buy it for a second, and if that truly is one of the most important reasons for it then that just reinforces my belief that it should not exist.

Also, maybe the important thing is to not buy into walled gardens that have stores with complicated deployment setups in the first place?

Re:Vibration API by marcinzm on Saturday December 18, 2021 @11:16AM (#29605614)
>Also, maybe the important thing is to not buy into walled gardens that have stores with complicated deployment setups in the first place?

You mean like having a standard cross-device open and uncontrolledly platform for running your application on any mobile device? Oh wait a second...

Re:Vibration API by wasmitnetzen on Saturday December 18, 2021 @06:14AM (#29603627)
If your are against walled gardens, why are you also against making the web more powerful so it has a chance to compete with native apps?
Re:Vibration API by pmcp on Saturday December 18, 2021 @05:46AM (#29603486)
You don’t have control over what phone your userbase uses.

I’ve built multiple pwa’s for companies and organisations, mainly for internal tools. It worked very well and we were happy we didn’t have to deploy to different app stores, while still being able to leverage the device’s api.

Can you explain why having more options to offer apps to users is a bad thing?

Re:Vibration API by tjpnz on Saturday December 18, 2021 @05:58AM (#29603542)
Yes I got something similar served through Google's own ad network. That served as the catalyst for my switching to Firefox (with uBlock Origin).
Re:Vibration API by TruthSHIFT on Saturday December 18, 2021 @11:36AM (#29605838)
I’m not surprised that this isn’t supported in mobile Safari.