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

Long press haptic feedback not working on iOS #4598

Closed
msasikanth opened this issue Apr 10, 2024 · 0 comments · Fixed by JetBrains/compose-multiplatform-core#1255
Closed
Assignees
Labels
enhancement New feature or request input Touch, mouse, keyboard input related ios

Comments

@msasikanth
Copy link

Describe the bug
Long press haptic feedback not working on iOS. I have tried using LocalHapticFeedback to perform long-press haptic feedback. It works on Android, but on iOS it's not working.

Affected platforms

  • iOS

Versions

  • Kotlin version*: 1.9.23
  • Compose Multiplatform version*: 1.6.1
  • OS version(s)* (required for Desktop and iOS issues): iOS 17.4.1
  • OS architecture (x86 or arm64): arm64
  • Device (model or simulator for iOS issues): iPhone 15 Pro

To Reproduce

val haptic = LocalHapticFeedback.current
haptic.performHapticFeedback(HapticFeedbackType.LongPress)

Expected behavior
Long-press haptic feedback

@msasikanth msasikanth added bug Something isn't working submitted labels Apr 10, 2024
@elijah-semyonov elijah-semyonov self-assigned this Apr 10, 2024
@elijah-semyonov elijah-semyonov added enhancement New feature or request input Touch, mouse, keyboard input related ios and removed bug Something isn't working submitted labels Apr 10, 2024
elijah-semyonov added a commit to JetBrains/compose-multiplatform-core that referenced this issue Apr 10, 2024
## Proposed Changes

Bridge `HapticFeedback` interface with `UIFeedbackGenerator`s, provide
the constructed bridge as static composition local.

## Testing

Test: APIs that request a haptic feedback should trigger one on iOS
(text selection, on-demand, etc)

## Issues Fixed

Fixes: JetBrains/compose-multiplatform#4598
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request input Touch, mouse, keyboard input related ios
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants