Configure Permissions
By default, all permissions are set to allow
by the launchApp command. It is possible to launch an app with custom permissions behaviour by passing the permissions
argument to launchApp
:
Available permissions
Maestro has standardized names for most permissions.
For example, on Android: bluetooth
targets both android.permission.BLUETOOTH_CONNECT
and android.permission.BLUETOOTH_SCAN
.
calendar
✅
✅
camera
✅
✅
contacts
✅
✅
health
❌
❌
homekit
✅
❌
location
✅
✅
medialibrary
✅
✅
microphone
✅
✅
motion
✅
❌
notifications
✅
✅
photos
✅
❌
reminders
✅
❌
siri
✅
❌
speech
✅
❌
usertracking
✅
❌
bluetooth
❌
✅
phone
❌
✅
storage
❌
✅
sms
❌
✅
my.custom.permission
❌
✅
Use all
as a permission name to represent all the permissions that the app can ask for.
Supporting permission IDs for Android
There are permissions on Android that are not listed in the table above. Use the permission IDs in place of the permission name to set these permissions.
For example, to allow the "add voicemail" permission, use:
Available permission names
Every permission can be set to: allow
, deny
or unset
allow
Permission granted
Permission granted
deny
Permission denied
Permission will be asked during flow run
unset
Permission will be asked during flow run
Permission will be asked during flow run
Some iOS permissions can have other values:
location
always
Same as allow
inuse
Only allow location whilst using the app
never
Same as deny
photos
limited
Allow limited access to photos
Examples
Permissions are set by passing them to the launchApp
command as follows:
Deny all permissions
Deny all permissions but allow the medialibrary
permission
medialibrary
permissionDeny all permissions but allow adding voicemails
Last updated