Skip to content

Haptics selectionStart and selectionEnd not playing #2355

@andybonner

Description

@andybonner

Bug Report

Plugin(s)

@capacitor/haptics

Capacitor Version

💊   Capacitor Doctor  💊

Latest Dependencies:

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

Installed Dependencies:

  @capacitor/android: not installed
  @capacitor/cli: 7.2.0
  @capacitor/core: 7.2.0
  @capacitor/ios: 7.2.0

[success] iOS looking great! 👌

Platform(s)

Encountered bug using iOS 18.3.2. Not sure whether it affects Android.

Current Behavior

I made a simple Ionic starter app to try out all the haptic API methods (https://github.com/andybonner/ionic-refresher-haptic-bug), with a button to trigger direct calls to each method or argument option (e.g. one for Haptics.impact({ style: ImpactStyle.Heavy }) and another for Medium and another for Light). I then ran the app via XCode, building to a physical iPhone 14 using iOS 18.3.2. I could feel the expected haptic events for all the buttons, except that I felt nothing for selectionStart and selectionEnd. (selectionChanged did play.) (I also didn't feel the expected Impact event from the Ionic ion-refresher component when using pull-to-refresh, but I opened that as an issue with Ionic as the capacitor Impact events worked fine when calling the API directly, so that's presumably a problem with the Ionic component.)

Expected Behavior

I would expect selectionStart and selectionEnd to play native haptic events

Code Reproduction

https://github.com/andybonner/ionic-refresher-haptic-bug

Additional Context

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions