Questions tagged [haptic-feedback]

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.

115 questions
5
votes
2 answers

Confused about haptic feedback in Android

I have an Android app with 9 buttons. This app runs on 2.36 and is the only app on the device (or at least the only app we let the user use - we ship the device with our code preinstalled as part of a suite of industrial products we sell.) All the…
user316117
  • 7,971
  • 20
  • 83
  • 158
4
votes
0 answers

Add haptic feedback to button in SwiftUI

I am able to create my custom style of button with a ButtonStyle but I would like to add haptic feedback when the button is touched down and let go of. I know there is a configuration.isPressed variable available in ButtonStyle, but how do I give…
Privitec
  • 69
  • 6
4
votes
1 answer

How to disable the Haptic Feedback when playing a Live Photo

In my app, I allow the user to play Live Photos from their photo library. To do this, I use the following: @IBOutlet weak var livePhotoView: PHLivePhotoView! @objc func handleTapGesture(_ recognizer: UITapGestureRecognizer) { if let currentType…
HemOdd
  • 697
  • 1
  • 7
  • 23
4
votes
1 answer

Flutter Haptic Feedback On Long Press

How are we supposed to cause haptic feedback on long press using Flutter HapticFeedback class? I am currently working with HapticFeedback.selectionClick() during my OnTapDown method, but nothing is happening. I have also already added the vibrate…
4
votes
0 answers

Set Logitech Steering Wheel position/angle from SDL?

I'm writing C code that controls a Logitech gaming wheel using SDL. So far I have successfully implemented the code that sets the steering wheel in autocenter mode with: SDL_HapticSetAutocenter(haptic, STRENGTH); //set autocenter I would like to…
Janus Gowda
  • 295
  • 1
  • 4
  • 17
4
votes
1 answer

UIImpactFeedbackGenerator impactOccurred Slight Delay

I'm using UIImpactFeedbackGenerator as described in Apple's developer docs, but there seems to be a slight delay -- maybe a tenth of a second or similar -- between when I invoke impactOccurred and when you feel the haptic. This is especially…
drewster
  • 5,460
  • 5
  • 40
  • 50
3
votes
1 answer

How can I check if haptic feedback enabled in system on Android 13 or higher?

I'm trying to get if haptic feedback enabled in System Settings, i.e. globally on a device. I don't need to set this setting, just read. We do it this way on Android 12 or lower: Settings.System.getInt(context.contentResolver,…
3
votes
0 answers

Trouble implementing custom haptics(with varying sharpness and intensity) on iPhone 7 Plus

I recently came across Google Calendar iOS app, and it provides a crisp-yet-very-light haptic feedback when dragging or creating events. I'm trying to implement the same. I figured out that the UIImpactFeedbackGenerator's .light impact is still too…
Lokesh SN
  • 1,583
  • 7
  • 23
3
votes
1 answer

AVHapticPlayer async call finishWithCompletionHandler: (type=3) did not get a reply after 30 seconds

Problem I am using Haptic Feedback in my app for when the user moves some tiles. When the tiles are moved very quickly, causing the haptic feedback to trigger quickly, I get this warning in the console after 30 seconds: 2019-01-20…
George
  • 25,988
  • 10
  • 79
  • 133
3
votes
2 answers

audiokit stopping haptic feedback

Is there a way for haptic feedback to work when AudioKit has been started? If I disable AudioKit the let generator = UISelectionFeedbackGenerator() generator.selectionChanged() code works, but when AudioKit has been started it fails.
3
votes
1 answer

On/Off haptic feedback Switch (Swift)

I have SettingsVC ("Photo" there are 2 switch) and MainVC ("Code" there is a function for adding haptic feedback buttons). How can I make it so that when you turn off the Switch in Setting, then the function would stop working? SettingsVC…
B2Fq
  • 876
  • 1
  • 8
  • 23
3
votes
3 answers

How can I play a haptic feedback while AvCapture Session is running?

When my Avcapture session is running and ready to record a video , I cannot play and audio files, vibrate or play any haptic feedback? I only found a solution for objective c but not swift. Objective C Solution : Using vibrate and AVCaptureSession…
3
votes
2 answers

No haptic feedback

My watchos app relies on haptic feedback working in the background. I have searched and searched over the internet on how to do this and have only learnt how to add things to my info.plist I do not want to use notifications to alert my user as its…
Mr Big Problem
  • 269
  • 1
  • 3
  • 12
2
votes
0 answers

I want to run haptic feedback when sliding with flutter slidable

I want to execute haptic feedback at the start of a slide, not onTap or onDismissible. The method of using a listener to execute the feedback is implemented, but this sometimes results in a timing error in the haptic feedback. onPointerDown:…
F.R
  • 21
  • 1
2
votes
0 answers

Disable haptics on system controls

Is it possible to disable haptic feedback app-wide? I know a lot of the app is not "haptic-enabled" by default, but on a .contextMenu I cannot seem to turn it off. I've built a HapticManager where I can control all my custom haptics or disable them…
markb
  • 1,100
  • 1
  • 15
  • 40