Coder Social home page Coder Social logo

Comments (5)

faugusztin avatar faugusztin commented on July 28, 2024 1

My Nokia 7.1 with Android 10 vibrates using this plugin. One thing to note is that 200ms is a really low value, it is the lowest value my phone vibrates at (100ms would not vibrate at all). You should try with longer vibration time (500ms-1000ms) to rule out the length of vibration being an issue, and then also you should try to call the Cordova plugin directly, like navigator.vibrate(500).

from cordova-plugin-vibration.

rchovan avatar rchovan commented on July 28, 2024 1

Hi, I can confirm this issue, but I have another two cents.
Vibration does not work on Android 10/11, tried 500ms too. On Android 7 vibration works.

from cordova-plugin-vibration.

VaultDeveloper avatar VaultDeveloper commented on July 28, 2024

Thank you for your feedback. I performed additional tests based on the points you mentioned.

  • It doesn't work with 500ms or 1000ms.
  • It doesn't work with window.navigator.vibrate(1000).

Howewer, I try to do vibrations in another screens of my application and everything works fine (even 100 ms vibrations).
The only screen where it doesn't works is in the modal I need it. It works in another modal.
In this modal I use another plugin, which can also emit vibrations Scandit for Cordova. I wonder if there can't be conflicts between the two plugins.

Also, both Android 10 devices I've tested with are Honor. It is possible that the problem might occur only with the manufacturer.

from cordova-plugin-vibration.

breautek avatar breautek commented on July 28, 2024

v3 relies on the browser implementation for implementations. This plugin does not implement vibrations for the android platform itself.

I'd advise checking the JS console by using chrome's remote webview inspector, to see if there are any related error messages such as: Blocked call to navigator.vibrate because user hasn't tapped on the frame or any embedded frame yet.

Potentially related to: #110

from cordova-plugin-vibration.

van9petryk avatar van9petryk commented on July 28, 2024

Just use v2
ionic cordova add [email protected]

from cordova-plugin-vibration.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.