react-native-haptic-feedback icon indicating copy to clipboard operation
react-native-haptic-feedback copied to clipboard

I don't get any haptic on IPhone 8

Open fredmanxu opened this issue 2 years ago • 4 comments

Hi, I tested the package and it works fine on android.But nothing work on IPhone8. I tried all parameters of the method. I don't get any errors or warnings on the console.

My example code

    haptic() {
        const hapticOptions = {
            enableVibrateFallback: false,
            ignoreAndroidSystemSettings: true,
        };

        const hapticTriggerType = Platform.select({
            ios: 'selection',
            android: 'notificationSuccess'
        });

        ReactNativeHapticFeedback.trigger(hapticTriggerType, hapticOptions)
    }

Package version

   "react": "16.13.1",
   "react-native": "0.63.4",
   "react-native-haptic-feedback": "^1.13.0"

Test device info

Model name: iPhone8
Software Version: 14.5.1

fredmanxu avatar Jan 21 '22 07:01 fredmanxu

Some issue on iPhone 6

VictorPulzz avatar Apr 28 '22 09:04 VictorPulzz

I have the same issue. iPhone 8, 14.8.1

cemalahmet avatar May 03 '22 23:05 cemalahmet

@VictorPulzz and @cemalahmet have you tried enableVibrateFallback: true? Probably your phone or older ios version is not support haptic feedback? Then you have to use fallback.

-(Boolean)supportsHaptic {
    return [[UIDevice currentDevice] systemVersion].floatValue >= 10.0
        && [DeviceUtils deviceVersion:@"iPhone"] > 8;
}

Romick2005 avatar Jun 22 '22 17:06 Romick2005

the same issue on ipone 11, is not working

MaksymBaturinskyi avatar Jul 11 '23 15:07 MaksymBaturinskyi