Ready to Rumble: A Plugin for Controller Vibration

Heyo @ZeroBreak !

Just checking but were you able to figure out the mobile (Android is what I'm looking for) vibration mode ?

I have been searching for a solution to the mobile (Android) vibration support for the last month or so now and I've learned 1 thing about the `navigator.vibrate()` function that seems to be the greatest hurdle I keep faceplanting into spectacularly .... yup it's starting to royally bug me at this point....

That 1 annoying wall stopping me from creating a working Android vibration plugin for MZ is this "thingy" (well it's a so-called "security" rule designed to give usage limitations to certain Javascript API features....) known as "Sticky Activation" triggered features.... seems the vibrate function has a trigger restriction that requires an input event to allow it to fire off...

I've already tried to bypass the restriction by making a pseudo Sticky Activation trigger event by simulating a user input event but that failed to work....

If you have any other ideas for how to "trick the system" into thinking there was a valid Sticky Activation trigger input event, I'd be glad to give it a try!

~ "Kurochan" from KuroyukiDev Games
Thanks for the notification. Rather than make what could end up being a futile attempt to hack some sort of MacGyver solution into the plugin, I have issued version 2.6 to remove it outright.
no prob @ZeroBreak !

I've been trying to figure it out myself too and yeah I ultimately decided to put that project on ice for now and not lose any sleep smashing my head against that roadblock....

glad to hear back from you tho! here's hoping someone finds a solution to this Sticky Activation trigger issue and makes it available to the community....

What I can say from my attempts to solve this issue is that using event listeners doesn't seem to be enough to trigger it... it seems that the navigator object is somehow managing the "gated security" and is looking for physical touch input on an actual HTML UI element. I was able to get the vibration to work in a small test app I made using HTML + JS and bundled as an Android APK via Cordova CLI build tools. I'm thinking it worked in that situation since it was triggered by actual physical interaction with HTML UI element click/touch input events and not thru programmatically triggered means....

hopefully this info helps someone find a solution to this issue for the community...

Original thread: https://forums.rpgmakerweb.com/threads/ready-to-rumble-a-plugin-for-controller-vibration.135759/