> ## Documentation Index
> Fetch the complete documentation index at: https://docs.replit.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Add haptics

> Add haptic feedback to PixelGames' D-pad and buttons.

export const AiPrompt = ({children}) => {
  return <CodeBlock className="relative block font-sans whitespace-pre-wrap break-words">
      <div className="pr-7">
        {children}
      </div>
    </CodeBlock>;
};

export const hapticsPrompt = "Add haptic feedback when pressing the D-pad and action buttons: a light pulse for the D-pad, a slightly heavier one for line clears in Blocks.";

Haptics are the small vibrations a phone gives back when you tap something, like the tiny
buzz when you press a button.

<AiPrompt>
  {hapticsPrompt}
</AiPrompt>

**iOS:** Supports several distinct feedback styles, light, medium, heavy impact, plus success
and warning notification feedback.

**Android:** Supports a smaller set of vibration patterns. Agent picks the closest equivalent
so it still feels intentional, not identical to iOS.

## Troubleshooting

* **No feedback on a physical device:** confirm the phone's haptics/vibration setting isn't
  disabled in system settings, PixelGames can't override that.
* **Nothing happens using Replit's Simulate on iOS/Android preview:** that view only renders
  the screen, it has no way to trigger your phone's vibration motor. Switch to Expo Go on a
  real device to feel haptics, see [preview and test on your phone](/build/mobile-preview-testing).
* **Feels different between iOS and Android:** expected, the two platforms don't expose the
  same feedback styles. Ask Agent to tune each separately if the difference is jarring.

## What's next

<CardGroup cols={2}>
  <Card title="Access contacts" icon="address-book" href="/build/mobile-contacts">
    Let players invite friends to compete.
  </Card>

  <Card title="Preview and test on your phone" icon="mobile" href="/build/mobile-preview-testing">
    Haptics only show up on a real phone.
  </Card>
</CardGroup>

## Related

* [Use iOS native components](/build/mobile-native-components)
