đŸĨ‘Haptic Feedback [iOS]

Haptic feedback in iOS 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 [iOS]

  • Type - LIGHT,MEDIUM,HEAVY,RIGID or SOFT

[Action] Natively - Haptic Notification [iOS]

  • Type - SUCCESS, ERROR, or WARNING

[Action] Natively - Haptic Pattern [iOS]

  • Pattern - as a text (example: ..oO-Oo..) Use pattern symbols to represent custom vibrations.

    • O - heavy impact

    • o - medium impact

    • . - light impact

    • X - rigid impact

    • x - soft impact

    • - - wait 0.1 second

  • Delay - number (example: 0.1)

🛠 JavaScript SDK

Haptic Impact [only iOS]

const type = "LIGHT"; // LIGHT,MEDIUM,HEAVY,RIGID or SOFT
window.natively.hapticImpactIOS(type);

Haptic Notification [only iOS]

const type = "SUCCESS"; // SUCCESS, ERROR, or WARNING
window.natively.hapticNotificationIOS(type);

Haptic Pattern [only iOS]

// '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