Search code examples
react-nativee2e-testingdetox

Set permission while relaunchApp isn't working


I try to set permissions while I relaunchApp but I keep getting this notification alert.

I try to do it like this:

beforeEach(async () => {
    await device.relaunchApp({ delete: true, permissions: {notifications: 'YES'} });
  });

And I get this alert: enter image description here

How can I bypass this system alert which failed my tests?


Solution

  • Please upgrade your applesimutils installation using brew tap wix/brew && brew upgrade applesimutils. Detox doesn't currently have a way to check that you are running an up to date version, and so it may silently fail.