Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I don't get any haptic on IPhone 8 #77

Open
fredmanxu opened this issue Jan 21, 2022 · 4 comments
Open

I don't get any haptic on IPhone 8 #77

fredmanxu opened this issue Jan 21, 2022 · 4 comments

Comments

@fredmanxu
Copy link

fredmanxu commented Jan 21, 2022

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
@VictorPulzz
Copy link

Some issue on iPhone 6

@cemalahmet
Copy link

I have the same issue. iPhone 8, 14.8.1

@Romick2005
Copy link
Contributor

@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;
}

@MaksymBaturinskyi
Copy link

the same issue on ipone 11, is not working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants