-
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
detox.init doesn't resolve in hybrid apps with initial native page (until you manually navigate to a react native page) #615
Comments
Could you please enable synchronization debug (as described in the documentation) and post the log output here? |
Could be a bug in our end in the start up logic. I will look into this soon. |
This remains open. Something in the tools prevents me from from being able to effectively debug this. |
Here's running with the debug-synch flag. The output seems the same :/
|
We are evaluating using detox but this is a blocking issue for us. |
Hang in there, we'll fix this shortly |
The blocking issue I had with development has been resolved, so I will take a look again. |
Yay! When can we expect a new release? |
Soon. |
Ninja magician! |
Thanks! |
Description
While running detox in my hybrid app, detox gets stuck on init before timing out. [last log is
detox verb ws send: {"type":"isReady","params":{},"messageId":-1000}
]The hybrid app has native login, but most of the app is in react native. If I rush through login and get to the react native part of the app then Detox runs smoothly.
Setup
Setup the same as described in https://github.com/wix/detox/blob/master/docs/Introduction.GettingStarted.md
init.js
As you can see in the log, it never reaches 'CONSOLE LOG ASYNC END BEFORE' (unless I skip through the ios section of the app quickly)
Package.json
Detox, Node, Device, Xcode and macOS Versions
Device and verbose Detox logs
verbose Detox Logs
Device Logs
edit:
It looks like once I hit react native, I can switch between native and non-native code (i.e. log out and do the log in flow in native). This tells me that the detox.init promise won't resolve until it hits react native. After that detox interacts with native and react native perfectly fine.This seems more like a bug than a usage error, so I'm going to close the stackoverflow question.
The text was updated successfully, but these errors were encountered: