-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: Error: "Haptics" plugin is not implemented on android #4447
Comments
This issue may need more information before it can be addressed. In particular, it will need a reliable Code Reproduction that demonstrates the issue. Please see the Contributing Guide for how to create a Code Reproduction. Thanks! |
Here's the link to reproduce the bug: https://github.com/Rosadojonathan/capacitor-haptics-bugreport |
Since Capacitor 3 has moved plugins out, you need to register them in order to work by adding the plugin in the init method like Or even better, enable the automatic plugin registration by deleting the init method or the whole onCreate |
@jcesarmobile (sorry for pinging) My MainActivity.java looks like this:
Still, only |
Every function mentioned in https://capacitorjs.com/docs/apis/haptics works for Android Is this intentional? If yes, we should update the documentation |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out. |
Bug Report
Capacitor Version
Platform(s)
Android
Current Behavior
I get an "Error: "Haptics" plugin is not implemented on android " error when I try to use the Haptics plugin after updating capacitor to v3 since it didn't seem to work on v2
Expected Behavior
Haptics should work on android
Code Reproduction
https://github.com/Rosadojonathan/capacitor-haptics-bugreport
run
yarn dev:android
Run it on an Android phone, open chrome remote device debugger, console shows "Error: "Haptics" plugin is not implemented on android " when clicking on "haptic test" button
Other Technical Details
npm --version
output:node --version
output: 12.4.0pod --version
output (iOS issues only):Additional Context
#3406 this issue suggested that by upgrading to capacitor v3 I would have Haptics work on android but it doesn't seem to be the case after upgrading
The text was updated successfully, but these errors were encountered: