-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[Android] LaunchApp with newInstance: false fails #669
Comments
I ended up using a custom ActivityTestRule class to get around this. The key was launching activities in a separate thread.
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
This issue is not stale. |
Using a different thread solved it, that's interesting. Do you get an ANR from your app while Detox is running ? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
This issue is not stale |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
The issue has been closed for inactivity. |
Description
Steps to Reproduce
This is our code:
The above code will fail with the following notice:
Setting
newInstance: true
resolves the issue. iOS works just fine.Detox, Node, Device, Xcode and macOS Versions
avd -n Nexus6 -k "system-images;android-26;google_apis;x86" -b x86 -c 100M -d 7 -f
Device and verbose Detox logs
The text was updated successfully, but these errors were encountered: