Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Device should be booted only when we change the permission status #1188

Closed
yogeshthanvi opened this issue Mar 1, 2019 · 1 comment
Closed

Comments

@yogeshthanvi
Copy link

yogeshthanvi commented Mar 1, 2019

In Detox when we set the device permission the simulator is booted again but it happens every time suppose when start the app and the location permission is not given , Now if we want to check an instance where we do not want to give location permission , to handle this we have to pass location permission as 'No'. Now already the permission status is 'No' and we are also passing as 'No' then in that case the device should not be booted.

@LeoNatan
Copy link
Contributor

LeoNatan commented Mar 5, 2019

This is a AppleSimulatorUtils issue, but don't open an issue, as I will respond here: There is no convenient way to read these permissions.

I recently made changes to applesimutils to only reboot the device when absolutely necessary. This should improve your test times. Please update your applesimutils and try.

@LeoNatan LeoNatan closed this as completed Mar 5, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Mar 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants