Expo Haptics Sentry Error

  1. SDK Version: 45
  2. Platforms(Android/iOS/web/all): Android
  3. Add the appropriate “Tag” based on what Expo library you have a question on.

I make use of the Expo Haptics library. We recently added Sentry to our app and it has been showing us a lot of this error:

Encountered an exception while calling native method: Exception occurred while executing exported method impactAsync on module ExpoHaptics: vibrate: Requires VIBRATE permission

It stems from the following line:


I added the permission “VIBRATE” to my android permissions in my app.json and it appears to have brought down the overall number of errors but it’s still coming in.

Any suggestions for better managing so that the error stops appearing? Way to check the permission exists prior to usage?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.