Skip to content
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

only vibrate() is working from haptics-Plugin (android) #3406

Closed
WhippyM opened this issue Aug 6, 2020 · 4 comments
Closed

only vibrate() is working from haptics-Plugin (android) #3406

WhippyM opened this issue Aug 6, 2020 · 4 comments

Comments

@WhippyM
Copy link

WhippyM commented Aug 6, 2020

Hi there,

I try to use the haptics plugin, but for example the device (android 8, Samsung Galaxy A3) only shows reaction on vibrate().
Is there a known bug already? I need more than one signal type to use this in our project.

  • vibrate
    working 😄
  • impact (all types)
    no reaction
  • selectionChanged
    no reaction
  • selectionStart(/End)
    no reaction
  • notification (all types)
Error: not implemented Error: not implemented
        at Object.fromNative (capacitor-runtime.js:230:14)
        at <anonymous>:1:18

Is there a Roadmap when this functions will work? 🎯

@dotNetkow dotNetkow transferred this issue from ionic-team/capacitor-site Aug 10, 2020
@imhoffd
Copy link
Contributor

imhoffd commented Aug 10, 2020

This is being fixed in Capacitor 3 with the new Haptics plugin: ionic-team/capacitor-plugins#5

@merganon
Copy link

merganon commented Sep 17, 2021

Still not working on Capacitor 3. Only Haptics.vibrate(); works. Am I missing something?

   Capacitor Doctor   

Latest Dependencies:

  @capacitor/cli: 3.2.3
  @capacitor/core: 3.2.3
  @capacitor/android: 3.2.3
  @capacitor/ios: 3.2.3

Installed Dependencies:

  @capacitor/cli: 3.2.2
  @capacitor/android: 3.2.2
  @capacitor/ios: 3.2.2
  @capacitor/core: 3.2.2
"dependencies": {
    "@capacitor/android": "^3.2.0",
    "@capacitor/app": "^1.0.2",
    "@capacitor/cli": "^3.2.0",
    "@capacitor/core": "^3.2.0",
    "@capacitor/device": "^1.0.2",
    "@capacitor/haptics": "^1.0.3",
    "@capacitor/ios": "^3.2.0",
    "@capacitor/splash-screen": "^1.1.1",
    "@capacitor/status-bar": "^1.0.2",
    "@capacitor/storage": "^1.0.3",

@imhoffd @WhippyM

@merganon
Copy link

Every function mentioned in https://capacitorjs.com/docs/apis/haptics works for Android
However on iOS only Haptics.vibrate(); is working

Is this intentional? If yes, we should update the documentation

@ionitron-bot
Copy link

ionitron-bot bot commented Nov 10, 2022

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.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Nov 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants