How do I test the browser vibrate?

0 favourites
  • 2 posts
From the Asset Store
Firebase: Analytics, Dynamic Links, Remote Config, Performance, Crashlytics on Android, iOS & Web Browser
  • The browser plugin allows for a use of a vibrate function - it is supposed to vibrate when the browser and device supports it. How can I find out which browsers support the vibration?

    I tested it in chrome on my Android device, and in Firefox on another Android device with no effect. I just used the standard pattern of 2 seconds vibrating, 1 second pause, 2 seconds vibrating (which is entered automatically when choosing the action). My phone is definetly able to vibrate (it does so when it receives calls or notifications), but it does not vibrate with the vibration command.

    How can I find out why it does not work? I assume that Chrome and Firefox are widely used browsers, so I guess it should work with them?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • So I fiddled around with the functionality, just in case someone else stumbles over the same problem. I found out:

    - it might not be possible to call the vibrate on layout start

    - there is a webpage on which one can check compatibilities in browsers, e.g. for vibration: caniuse.com/vibration

    what is weird thouhg is that the vibration SHOULD work on firefox android, but it does not work on multiple devices (while it works in chrome on the same device) - so far no idea why

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)