apache / apache/cordova-plugin-vibration

No vibrations on Android 10 devices

Open
#95 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
129
Forks
129
PR merge metrics
No merged PRs in 30d

Description

# Bug Report

## Problem

### What is expected to happen?

Vibrations.

### What does actually happen?

No vibrations.

### Command or Code

```typescript
constructor(private vibration: Vibration)
{
this.isvcVibration.vibrate(200);
}
```

### Environment, Platform, Device

Only tested on Android devices. Everything is working fine until I use a Android 10 device. I have tested only on 2 Android 10 devices and both doesn't vibrate.
Little detail: If I click on the overwiew button (the right physic button on the bottom of the screen), the device vibrates when the app goes in background.

### Version information

cordova-plugin-vibration: 3.1.1.
cordova-android: 9.0.0
cordova-plugin-androidx: 3.0.0
cordova-plugin-androidx-adapter: 1.1.1
I use the Ionic framework

## Checklist
- [x] I searched for existing GitHub issues
- [x] I create a [StackOverflow Question](https://stackoverflow.com/questions/64464596/ionic-cordova-vibration-not-working-on-android-10)
- [x] I updated all Cordova tooling to most recent version
- [x] I included all the necessary information above

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue with cordova-plugin-vibration 3.1.1, cordova-android 9.0.0, and Android 10 using the TypeScript example in the report. Inspect the plugin's Android behavior and compare it with the reported background vibration; done means vibration works on Android 10 without changing the existing call.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, javascript
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.