Natively Docs
Join our community 🔥
  • 👩‍🚀Getting Started
    • What is Natively?
    • Why Natively?
    • FAQ
    • Create Your First App
  • 🚀Natively Platform
    • 🚉Releases
    • 🖌️Appearance
      • 😼App Icon
      • 📱Loading Screen
      • 📱Error Screen
      • 🎨Style
    • 🎬Preview
    • ⭐Features
      • 🛳️Bottom Bar
      • 🚇Deeplinks
        • 🔥Firebase
        • 🔗Universal Links
        • 🌱Branch.io
      • 📍Geolocation
      • 🔔Notifications
        • 📲OneSignal Notifications
        • 🔥Firebase Notifications (Advanced)
      • 📒Contacts
      • 👩‍🎨Social Auth
        • 🍏Sign In with Apple
      • 💟HealthKit
      • 💰Purchases
      • 🤑Admob
      • 💳NFC
      • 📷Camera
      • 📂Photo Library
      • 🎤Microphone
      • 📈Analytics
        • 🕊️AppsFlyer
        • 😛Facebook
    • 🚚Publish
      • 🍏iOS App
      • 🤖Android App
    • ⚙️Settings
    • 🙈Subscription Plans
  • Guides
    • 🧋Integration (Native Features)
      • 🏅How to get started?
      • ℹ️Device
      • ℹ️Browser Info
      • 🛳️Bottom Bar
      • ✂️Clipboard
      • 🚦Push Notifications - OneSignal
      • 🚦Push Notifications - Firebase (Advanced)
      • 📍Geolocation
      • 📦App Storage
      • 🗝️Biometrics & Credentials
      • 📧Native SMS/Email
      • 📅Native Date Picker
      • 📸Native Camera
      • 🎙️Native Audio Recorder
      • 🈁Native Scanner (QR/Barcode)
      • 📔Contacts
      • 🍏Apple Sign In
      • ❤️HealthKit
      • 💸In-App Purchases
      • 🤑Admob
      • 💳NFC
      • 🥑Show Toast/Banner
      • ⏳Show/Hide Loading Screen
      • 🥑Haptic Feedback
      • 🖼️Share Media/Files
      • 📱Open an external App/URL
      • ✍️Request User's review
      • ↔️getInsets
      • 🎨Control Style & Colors
    • 🔍Troubleshooting
    • 🐈Setup RevenueCat App
    • 🚑Setup Admob App
    • 🚥Setup One Signal App
    • 🧑‍🤝‍🧑Setup website Universal Links (Deeplinks)
    • 🍕Testing & Submitting your app
    • 🔑Generate iOS Push Key (NEW)
    • 🔑Generate iOS Push Certificate (Legacy)
    • 🤝Affiliate program
    • 📕For Partners: Natively Brand Book.
Powered by GitBook
On this page
  • 🧋 Bubble.io Plugin
  • 🛠 JavaScript SDK

Was this helpful?

  1. Guides
  2. Integration (Native Features)

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.

PreviousShow/Hide Loading ScreenNextShare Media/Files

Last updated 5 months ago

Was this helpful?

🧋 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 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

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);
🧋
🥑
Bubble.io Plugin
JavaScript SDK