Trigger rich physical vibration patterns, Taptic Engine feedback, and tactile haptic impulses on iOS and Android.
Trigger rich physical haptic vibration feedback. Nativine embeds native iOS Taptic Engine (UIImpactFeedbackGenerator) and Android Vibrator (VibrationEffect) bridges, allowing your web application to deliver tactile responses during button taps, form validations, and game actions.
Haptic feedback elevates mobile user experience by providing physical confirmation. Web browsers lack fine-grained haptic access, but Nativine's Haptic plugin provides hardware-level Taptic Engine control:
light, medium, heavy, rigid, and soft physical Taptic Engine impacts.success, warning, and error status events.[100, 200, 100, 300]) on Android devices.To trigger physical haptic vibration feedback from JavaScript, call nativine.haptics.impact() or nativine.haptics.notification():
// Trigger impact haptic (light, medium, heavy, rigid, soft)
nativine.haptics.impact({ style: 'medium' });
// Trigger notification haptic (success, warning, error)
nativine.haptics.notification({ type: 'success' });
// Trigger custom vibration duration (milliseconds)
nativine.haptics.vibrate({ duration: 150 });
| Parameter | Type | Description |
|---|---|---|
style | string | Optional. Impact style (light, medium, heavy, rigid, soft). |
type | string | Optional. Notification feedback type (success, warning, error). |
Yes. Taptic Engine hardware impact feedback is supported on iPhone 7 and all newer iOS devices.
Yes. If a user turns off System Haptics in iOS/Android system settings, haptic vibrations are muted automatically.