Skip to content

App permission not longer persist when resetAppState() or launchApp({resetAppState: true}) was specified #4850

@MadSandwich

Description

@MadSandwich

Did you test using the latest Detox?

  • I have tested this issue on the latest Detox release and it still reproduces.

Did your test fail and you're not sure why?

  • I have read the troubleshooting guide and it didn't help me.

What happened?

When await device.resetAppState() is called or specified as a parameter inside await device.launchApp({ resetAppState: true, permissions: { notifications: 'YES', location: 'always' } }), are no longer passed for app. After excluding resetAppState() or resetAppState param, everything is working again as expected.

Issue is not reproduced on IOS device.

What was the expected behaviour?

No response

Help us reproduce this issue!

No response

In what environment did this happen?

Detox version: latest
React Native version: 0.79.5
Has Fabric (React Native's new rendering system) enabled: (yes/no)
Node version: 20.11.0
Device model: Android
Android version: 15
Test-runner (select one): jest

Detox logs

Detox logs
paste logs here!

Device logs

Device logs
paste your device.log here!

More data, please!

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions