You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2020/10/21 16:22:30 UTC

[GitHub] [cordova-plugin-vibration] VaultDeveloper opened a new issue #95: No vibrations on Android 10 devices

VaultDeveloper opened a new issue #95:
URL: https://github.com/apache/cordova-plugin-vibration/issues/95


   # Bug Report
   
   ## Problem
   
   ### What is expected to happen?
   
   Vibrations.
   
   ### What does actually happen?
   
   No vibrations.
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   
   vibration.vibrate(200);
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you experiencing the issue? -->
   
   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
   <!-- 
   What are relevant versions you are using?
   For example:
   Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins 
   Other Frameworks: Ionic Framework and CLI version
   Operating System, Android Studio, Xcode etc.
   -->
   
   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
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-plugin-vibration] faugusztin commented on issue #95: No vibrations on Android 10 devices

Posted by GitBox <gi...@apache.org>.
faugusztin commented on issue #95:
URL: https://github.com/apache/cordova-plugin-vibration/issues/95#issuecomment-713705972


   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)`.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-plugin-vibration] rchovan commented on issue #95: No vibrations on Android 10 devices

Posted by GitBox <gi...@apache.org>.
rchovan commented on issue #95:
URL: https://github.com/apache/cordova-plugin-vibration/issues/95#issuecomment-1073871653


   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.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-plugin-vibration] VaultDeveloper commented on issue #95: No vibrations on Android 10 devices

Posted by GitBox <gi...@apache.org>.
VaultDeveloper commented on issue #95:
URL: https://github.com/apache/cordova-plugin-vibration/issues/95#issuecomment-715210103


   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](https://github.com/Scandit/scandit-cordova-datacapture-core). 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.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org