apache / cordova-plugin-vibration

Apache Cordova Vibration Plugin
https://cordova.apache.org/
Apache License 2.0
127 stars 129 forks source link

Vibration does not work when app is not active on Android 8 #71

Closed Creiger closed 5 years ago

Creiger commented 5 years ago

On Android 7, it was possible to send vibration from the app that was not active. This is not possible anymore on Android 8. Could this be fixed?

jcesarmobile commented 5 years ago

The plugin removed all android native code because it was possible to do it with browser APIs, but then a new Chrome version was released that don't allow to vibrate if there is no user interaction. A similar issue was created on JIRA and the decision was to do nothing about it. So you'll have to create your own plugin that does native vibration