Comments (5)
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.
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.
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.
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.
Just use v2
ionic cordova add [email protected]
from cordova-plugin-vibration.
Related Issues (13)
- doesn't work HOT 2
- Support more haptics, not just matching the web API
- What does "if user hasn't tapped on the frame or any embedded frame yet." Mean? HOT 3
- No automated tests HOT 3
- Vibration does not work when app is not active on Android 8 HOT 1
- Vibrate not working on Android 4.4.2 with Ionic 3 or 4 HOT 2
- Release 3.1.1 HOT 2
- Remove browser non-implementation to enable usage in browsers
- navigator.vibrate() Does not work in IOS 12.2 HOT 4
- Vibration not working on iPhone 11 HOT 2
- Vibration not Working in Android HOT 1
- Vibration in background
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-plugin-vibration.