Haptic Feedback on mobile devices is implemented by installing small motors that generate a vibration when the user interacts with it. Also intensity, length and patterns of the haptic feedback are used to indicate different cases.
Questions tagged [haptic-feedback]
115 questions
2
votes
0 answers
SwiftUI app does not run Tasks after haptics engine error
Sometimes, after the app is resumed from background it shows these messages in the log:
2022-03-23 19:16:53.423801+0000 AppName[15711:6706975] [hapi] CHHapticEngine.mm:595 -[CHHapticEngine createHapticPlayerWithOptions:]: ERROR: Server…

esp
- 7,314
- 6
- 49
- 79
2
votes
0 answers
unblock steering wheel g920
I try to determine the position of the g920 steering wheel by SDL2 library. (Windows 10 x64, mingw64 7.3.0, sdl v2.0.18)
Code:
SDL_Init( SDL_INIT_JOYSTICK );
SDL_JoystickEventState(SDL_ENABLE);
auto devPtr = SDL_JoystickOpen(0);
...
I can read the…

Олег Юрченко
- 49
- 3
2
votes
1 answer
Turn off trackpad haptic feedback in Xcode Interface Builder?
I came back to working with Xcode recently and I noticed that Interface Builder "rattles" my 2020 (Intel) Air's trackpad a lot by giving haptic feedback when elements snap to layout lines.
Is there any way to turn this off in Xcode?

Crazor
- 328
- 1
- 12
2
votes
1 answer
XR Interaction Toolkit - Hover event on UI Elements with XRRayInteractor
I'm trying to make a VR game on Oculus Quest with the XR Interaction Toolkit and I would like to configure an haptic event when the user is hovering a UI element. The problem is that the haptic event works when I'm hovering a XRGrabInteractable or a…

Alexandre Favre
- 21
- 5
2
votes
0 answers
Haptic Feedback on button pushes in Android Studio using Kotlin
I'm brand new to coding and have been learning Kotlin for about a week now. But with everything shut down I have literally nothing else to do, so I'm going at it all day, every day. I built a basic app and have been trying to get basic haptic…

TheDudeAbides
- 19
- 3
2
votes
1 answer
Haptic feedback during animation - mimic UIPickerView
I created the circle with deck of cards, that user can spin to select one. After the paning ends, it snaps to designated angle with a nice deceleration animation. In future there will some kind of indication that the card at 45 degrees is the…

3Qax
- 324
- 1
- 2
- 12
2
votes
1 answer
Is there a fast way to debug mobile vibrations in Unity?
I'm trying to rapidly preview and iterate on different Android vibrations that I'm making through Unity3D. Currently, the only way that I know how to successfully do this is to build the project each time. This is really tedious and takes a very…

Null Salad
- 765
- 2
- 16
- 31
2
votes
0 answers
Is it possible to disable haptic feedback for UISwitch?
Having a related issue, so is it possible disable haptic feedback of UISwitch to make it work without haptic vibration like at iPhone6 for instance?

Alexdrob
- 95
- 1
- 4
2
votes
3 answers
Why vibration doesn't work on Android P (API 28)?
I'm trying to implement haptic feedback when changing a value of a seekbar.
It works correctly on Android pre-P. On Android P it doesn't work at all.
Code:
private val vibrator = context.getSystemService(Context.VIBRATOR_SERVICE) as…

Mike
- 2,547
- 3
- 16
- 30
2
votes
0 answers
iOS UITableView swipe haptic feedback
Since iOS 11 (actually I think I noticed that in iOS 10 as well) there is a slightly noticeable "click" when swiping table view cells in the beginning (in Mail.app for example). I've noticed the same "click" on launching applications from Home…

Dmitry
- 7,300
- 6
- 32
- 55
2
votes
0 answers
How to get status of system Haptics setting programmatically in ios?
In my app, i want the user to enable or disable haptic feedback. When the haptic feedback of device is off, i will not allow the user to enable it. I want to know the status of haptic setting in the device and if its on/off.

Apsara
- 61
- 6
2
votes
0 answers
Prepare multiple UIFeedbackGenerators
To improve the response time of the haptic engine on iPhone7(plus), you have to call prepare on the UIFeedbackGeneratorinstance a few seconds before you actually want to perform the feedback.
But what if you want to use a UIImpactFeedbackGenerator…

bramseynhaeve
- 21
- 3
2
votes
2 answers
Haptics don't play in background when bluetooth headphones are connected to Apple Watch
I have a watchOS3 workout app that uses haptic notifications. It setup correctly to run a workout session and haptics work when running in the background. However, if bluetooth headphones are connected to the apple watch, then you only get the…

jeffbailey
- 137
- 6
1
vote
0 answers
how to add haptic or sound to my custom keyboard
I want to add haptic and sound to my custom keyboard.
Here is my code.
let generator = UIImpactFeedbackGenerator(style: .medium)
generator.prepare()
generator.impactOccurred()
What's wrong?

Ronaldo.K
- 303
- 1
- 5
- 13
1
vote
1 answer
Cannot find HapticAudioResourceID in scope
I have a problem when adding audio to haptic feedback using core haptics in swifui. The system keeps showing the error "can't find audioID" in scope as audioID should be a registered audio resource ID parameter created by the function…

Yunjia You
- 11
- 2