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
0
votes
1 answer
Crash while using Core Haptics most probably while stopping the Haptic Engine
I am using Core Haptics in my application to implement custom vibrations which could not be done by using simple UIImpactFeedbackGenerator
Then i do the following -
Instantiate the engine
Start the engine
Instantiate the CHHapticPatternPlayer
Start…

kgupta073
- 1
- 3
0
votes
1 answer
I want a vibration when user clicks on the button , I implemented the HapticFeedback but it not working
Below is my code for the Button and I want to vibrate it when user press the button.
I also added the permission in AndroidManifest and tried all the methods of HapticFeedback but none of them works
Material(
…

Praveen Kumar
- 199
- 11
0
votes
1 answer
Core Haptics not playing in iOS 15 with certain AVAudioSession configurations
I'm using Core Haptics to play a custom "heart beat" pattern, while simultaneously playing music using AVAudioPlayer. Specifically, I'm creating a simple CHHapticPattern, then creating a CHHapticEngine to play that pattern.
The custom haptics play…

WayneYHuang
- 23
- 5
0
votes
2 answers
No haptic feedback when testing on a actual iPhone
I followed Apple's guide regarding implementing haptic features to my app. I tested on my iPhone but when I trigger the haptic action (tap a button on a tableView controller), nothing happens.
Thie is my implementation:
if supportHaptics {//line 95
…

Jack Stark
- 57
- 7
0
votes
1 answer
Haptic Longpress on Reorderable List
On an android, how can I cause a vibrate on the long press of a reorderable list item? I have tried using gesture detector on the item and it disables the ability to reorder the list.

Hydraux
- 1
0
votes
1 answer
How to implement sound and vibration together in SwiftUI
Annotating onTapGesture activates sound. But the vibration doesn't work. How to implement sound and vibration together?
Why does this problem occur?
let feedback = UIImpactFeedbackGenerator(style: .soft)
func activeNum() {
playSound(sound:…

JeeNi
- 161
- 1
- 2
- 8
0
votes
1 answer
Haptic FeedBack Still Going After Switching The View Controller
I have a secondary View Controller that uses some haptic feedback. I am triggering the haptic feedback on a scheduled timer that loops every 14 seconds
Timer.scheduledTimer(withTimeInterval: 14, repeats: true) { _ in
…

Rem Biths Wind
- 51
- 6
0
votes
1 answer
Haptic feedback with RIO unit
If I have AVAudioSession configured with .playAndRecord category and a remote IO unit running, what's the besy way to enable haptic feedback on button presses?

Deepak Sharma
- 5,577
- 7
- 55
- 131
0
votes
1 answer
How to include a haptic function on a UI Table View Cell
I have a basic quiz where the uitableview presents four cells. Three cells have wrong answers, and one has a correct answer. I already have included alerts, so this tells the user where he/she has been incorrect and where they are correct.
I have…

Henry Hall
- 39
- 6
0
votes
1 answer
Do Core Haptics and Core Bluetooth interfere?
Setup
My iOS application is communicating with a BLE device.
As a response to certain events within this communication, I would like to provide haptic feedback to the user.
In an attempt to support older phones like the iPhone 7, I decided to use…

jraufeisen
- 3,005
- 7
- 27
- 43
0
votes
1 answer
Haptic (vibration) feedback on Samsung Galaxy S8+
The goal is to receive vibration feedback during some action happened in app.
HapticFeedbackConstants has several constants which are responsible for different haptic types.
It is not documented well, but feels logically that CONTEXT_CLICK fits…

Beloo
- 9,723
- 7
- 40
- 71
0
votes
1 answer
I got an error: Use of unresolved identifier 'UINotificationFeedbackGenerator'
When instantiating 'UINotificationFeedbackGenerator' for haptic feedback, I get this compiler error:
Use of unresolved identifier 'UINotificationFeedbackGenerator'
This is how I instantiate it:
let hapticNotificationFeedback =…

craft
- 2,017
- 1
- 21
- 30
0
votes
1 answer
Oculus Quest Haptics Feedback not working when building
I'm trying to set up the haptic feedback on oculus quest in Unity, using VRTK but it doesn't work, both with the VRTK custom script and OVRInput Haptics APIs. It works fine when I test the app on Oculus Rift, though. If anyone incurred in the same…

Filippo
- 83
- 1
- 1
- 5
0
votes
2 answers
How to add sound feedback like pickerview in collectionview?
Hi I'm trying to add feedback when scrolling through the collectionview Items. Where should I add code for feedback in collectionview delegates. If I add in willDisplay then add cell that will be displayed initially will call feedback which is not…

Arun K
- 810
- 2
- 12
- 33
0
votes
0 answers
iOS haptic feedback at UISwitch crash
There are some UISwitches at page (xamarin forms)
After keyboard opening there is a crash related to haptic feedback:
Terminating app due to an uncaught exception 'NSInternalInconsistencyException', reason: 'Exception raised while auto-deactivating…

Alexdrob
- 95
- 1
- 4