User avatar
Sinnamon (despicable arc 😈) @cinnamon@mk.absturztau.be
1y
Ok, after more than one hour trying, I'm hereby declaring that the HTML5 Vibration API on mobile phones (at least on my Xiaomi using Chrome) is a scam.

The whole API is
protected by a user gesture requirement, except that the requirement is never met no matter what my interaction with the webpage is.

Anybody has managed to get this working
recently?

Yeah, I'm like those cool people who fiddle with interesting stuff and write a post series during a whole evening, except that I always take the wrong turn and get stuck in the mud. My posts aim to be a celebration of success and end up becoming a rant in the end.
blobcatgooglyshrug
2
0
0
0
User avatar
Alba 🌸 v_pat @mildsunrise@tech.lgbt
1y
@cinnamon I'm trying to remember what my experience with that api was... I think it did work for me back when i was making this but it surely doesn't work right now
2
0
0
0
User avatar
pathetic piss kitten @kitten@elizabeth.cat
1y
@mildsunrise @cinnamon works for me on Chrome Android
:celsilvercrystalheart@mk.absturztau.be:1
2
0
0
1

User avatar
Alba 🌸 v_pat @mildsunrise@tech.lgbt
1y
@kitten which version do you both have? the error @cinnamon has posted sounds like a bug, i wonder if it happens with other APIs that require sticky user activation
3
0
0
0
User avatar
Alba 🌸 v_pat @mildsunrise@tech.lgbt
1y
@kitten @cinnamon also, I would've sworn this thing was working in Firefox before... looked at why it's broken now and, surprise! they removed the vibration API so the code crashes now
0
0
0
0
User avatar
pathetic piss kitten @kitten@elizabeth.cat
1y
@mildsunrise @cinnamon 142.0.7432.0
:blobcatopenmouth@mk.absturztau.be:1
1
0
0
1
User avatar
pathetic piss kitten @kitten@elizabeth.cat
1y
@mildsunrise @cinnamon Android 15, Oneplus 13
:celsilvercrystalheart@mk.absturztau.be:1
0
0
0
1
User avatar
Sinnamon (despicable arc 😈) @cinnamon@mk.absturztau.be
1y
@mildsunrise @kitten Chrome 141.0.7390.70 on Android 14 (Xiaomi Redmi Note 12 Pro 5G)
1
0
0
0
User avatar
Alba 🌸 v_pat @mildsunrise@tech.lgbt
1y
@cinnamon @kitten I also have 141.0.7390.70 so it does sound like a bug. I'm too lazy to check that it's giving me the same error as you though
1
0
0
0
User avatar
pathetic piss kitten @kitten@elizabeth.cat
1y
@mildsunrise @cinnamon working for me on 141.0.7390.70 as well
1
0
0
0
User avatar
Alba 🌸 v_pat @mildsunrise@tech.lgbt
1y
@kitten @cinnamon the plot thickens neofox_think
1
0
0
0
User avatar
pathetic piss kitten @kitten@elizabeth.cat
1y
@mildsunrise @cinnamon does it fail for you as well without silent mode
:celsilvercrystalheart@mk.absturztau.be:1
1
0
0
1
User avatar
Sinnamon (despicable arc 😈) @cinnamon@mk.absturztau.be
1y
@kitten @mildsunrise I'm in normal mode. I'll try to find and disable the "dumb user mode" and the "unlucky user mode"... blobcatthinkingeyes
:blobcatgiggle:1
0
0
0
1
User avatar
Sinnamon (despicable arc 😈) @cinnamon@mk.absturztau.be
1y
@kitten @mildsunrise At least that discards me getting crazy and blames my device. Thanks for checking!!! 🙏🙏🙏
0
0
0
0