🥑Haptic Feedback
Haptic feedback in mobile apps is a feature that uses touch-based vibrations to enhance user interactions, improve accessibility, increase engagement, provide subtle and effective communication.
🧋 Bubble.io Plugin
[Action] Natively - Haptic Impact
Type - LIGHT,MEDIUM,HEAVY,RIGID or SOFT
[Action] Natively - Haptic Notification
Type - SUCCESS, ERROR, or WARNING
[Action] Natively - Haptic Pattern
Pattern - as a text (example: ..oO-Oo..) Use pattern symbols to represent custom vibrations.
O- heavy impacto- medium impact.- light impactX- rigid impactx- soft impact-- wait 0.1 second
Delay - number (example: 0.1)
🛠 JavaScript SDK
Haptic Impact
const type = "LIGHT"; // LIGHT,MEDIUM,HEAVY,RIGID or SOFT
window.natively.hapticImpactIOS(type);Haptic Notification
const type = "SUCCESS"; // SUCCESS, ERROR, or WARNING
window.natively.hapticNotificationIOS(type);Haptic Pattern
// 'O' heavy impact
// 'o' medium impact
// '.' light impact
// 'X' rigid impact
// 'x' soft impact
// '-' wait 0.1 second
const pattern = "..oO-Oo..";
const delay = 0.1; //
const description = "Test Description";
window.natively.hapticPatternIOS(pattern, delay);Last updated
Was this helpful?