Custom permissions on Android

I need to add the VIBRATE permission for Android and I see there’s a permissions config option that I can use. Although, in the docs it mentions the default permissions being overridden when you do this, but it doesn’t list what the default permissions are and which ones are required for expo (I’ve seen some posts saying it needs some or it could crash the app).

Can I just add permissions: ["VIBRATE"] or do I need to add others like WAKE_LOCK, INSTALL_SHORTCUT, etc.

1 Like

Hi, Zach!

The resulting app’s permissions will always include what a basic expo app needs to function; as long as you list the permissions that your code uses, the app will start without crashing.

I think your question is reasonable: the documentation could be more clear.

1 Like

Awesome, thanks for the clarification

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