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
30
votes
7 answers

Flutter: How to use HapticFeedback

I have imported import 'package:flutter/services.dart'; and then called HapticFeedback.lightImpact(); nothing happens. What do I need to do to get it working? I am testing with the latest Flutter version 1.6.6 on a Galaxy S8 running Android 9.0
Ymi_Yugy
  • 513
  • 1
  • 4
  • 7
27
votes
6 answers

How to check if Haptic Engine (UIFeedbackGenerator) is supported

I am wondering how we could check if the new iOS 10 API UIFeebackGenerator is available on the current device. There are some more things we would need to check: The device needs to run iOS 10.0 or later The device needs to be an iPhone 7 or…
Hans Knöchel
  • 11,422
  • 8
  • 28
  • 49
20
votes
5 answers

How to perform a haptic feedback in Jetpack Compose

Using jetpack compose, for a clickevent how to perform haptic feedback. I am new to jetpack compose. This is what i tried - val hapticFeedback = LocalHapticFeedback @Composable fun Tab() { Row() { Icon(imageVector = icon,…
Samrat
  • 578
  • 1
  • 5
  • 20
17
votes
5 answers

Enable haptic Feedback on react-native touchable view

I an writing a react-native app, And I noticed that while the buttons look like native buttons when clicked - they do not behave as one (At lease not like android button behave). Clicking on android app button - make a sound and give the user an…
Nadav Nagel
  • 313
  • 1
  • 2
  • 8
15
votes
3 answers

UIImpactFeedbackGenerator Not Working When Audio Device Added to AVCaptureSession

Adding microphone audio input to AVCaptureSession seems to disable UIImpactFeedbackGenerator. let audioDevice = AVCaptureDevice.defaultDevice(withMediaType: AVMediaTypeAudio) let audioDeviceInput = try AVCaptureDeviceInput(device: audioDevice) if…
Gizmodo
  • 3,151
  • 7
  • 45
  • 92
13
votes
3 answers

SwiftUI Menu - action when menu actually will open

I have a Menu in my app, and I trigger haptic feedback when menu opens (from onTagGesture action). However sometimes when I tap on the menu open trigger, the menu won't actually open, but I'm still getting haptic feedback. I want haptic only when…
Mikhail Kornienko
  • 1,162
  • 1
  • 8
  • 12
9
votes
1 answer

Is it possible to trigger a haptic feedback without the accompanying sound on apple Watch OS 2

Assuming the user has not muted their watch sounds. Is it possible for an apple watch app to trigger a haptic feedback (i.e vibrate) without the accompanying sound. This is different than receiving a notification which is handled automatically by…
Saviz
  • 677
  • 6
  • 19
7
votes
5 answers

iOS Haptic Feedback not firing

I'm working with some UIGestures (in particular a force touch). I have all of that working, the additional UI updates/animations all working per the forced touch. However, I would like to add in the haptic touch feedback on the hard press. To my…
djneely
  • 1,074
  • 13
  • 25
7
votes
0 answers

Disable UICollectionView haptic feedback when moving cells

Is there a way to disable the haptic feedback happening when cells are swapped during moving ?
fredericdnd
  • 968
  • 1
  • 14
  • 25
7
votes
0 answers

UIFeedbackGenerator _autoDeactivate crashes iOS 11.2.2

I am seeing intermittent crashes with the haptic feedback engine in iOS 11. Unfortunately, I do not have reproducible steps because it seems to be happening randomly. Here are the exception and stack traces: Exception raised while auto-deactivating…
Glavid
  • 1,071
  • 9
  • 19
7
votes
5 answers

UISelectionFeedbackGenerator() not working on iPhone 7

I would like to use some haptic in my app. I am using the UISelectionFeedbackGenerator but it will not work. I am testing on real iPhone 7 with iOS 10. These two lines should do the magic – but nothing happens: let generator =…
Kevin Lieser
  • 951
  • 1
  • 9
  • 25
6
votes
0 answers

Difference between KEYBOARD_PRESS and VIRTUAL_KEY

I'm implementing a virtual Android keyboard and are about to add haptic feedback. Luckily Android provides performHapticFeedback() and HapticFeedbackConstants so it's easy to give the user a haptic feedback. It's however not clear to me what the…
Anigif
  • 872
  • 8
  • 17
6
votes
2 answers

Haptic feedback not playing nice with AVFoundation? (UIImpactFeedbackGenerator, etc)

I'm trying to have a video/camera view in the background while I also allow for haptic feedback in my app for various actions, but it seems that AVFoundation is not playing nice with any of the calls I am making that involve the haptic calls: if…
JasonAddFour
  • 153
  • 1
  • 1
  • 10
5
votes
1 answer

How to trigger MacBook trackpad haptic feedback on a website?

I'm writing a web application with a lot of drag and drop functionality and I want to enable haptic feedback (when possible, using macOS 10.11+ with a Force Touch trackpad) for actions like "snapping in" while dragging items. Is this possible (I…
Can Poyrazoğlu
  • 33,241
  • 48
  • 191
  • 389
5
votes
1 answer

Android's - performHapticFeedback vs Vibrator - documentation and use

TL;DR: Would appreciate any extra information on Android's abstract class Vibrator vs performHapticFeedback Preferably avoiding the use of the Vibrator class and prioritising performHapticFeedback to circumvent having to ask the user for…
Gus
  • 403
  • 7
  • 14
1
2 3 4 5 6 7 8