-
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
SyncQueue busy with react-native-webview sharedCookies #4438
Comments
@dazlious, I suspect the issue stems from the fact that you're not actually opening an react-native-webview but rather the iOS's webview (i.e. Safari). Your app can't handle this URL itself (since it isn't on its URL scheme), this results in Detox losing control of your app to the iOS browser. |
React Native's Linking guide may help here. |
If you encounter main run-loop synchronization issues despite what I've mentioned, you can try passing this experimental and unofficial launch-arg in your |
That is a good to know - Will try that if nothing works.
I would tend to agree, IF there was not the issue that it does work without that sharedCookies flag. To me that is proof that Detox is not loosing track, as with and without cookie behaves different |
So to me it seems like you have two issues here:
|
Btw, I appreciate your response a lot π |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions! For more information on bots in this repository, read this discussion. |
not stale |
Sorry for the delay in the response. Is it still an issue? @dazlious |
Description
Hey π
I did not want to create a bug report for this as I am maybe using it wrong. At least I am unable to find a solution for my problem.
I am getting stuck with
I tried hundreds of things already, but I cannot debug the underlying issue for a specific use-case. Additionally I cannot turn off synchronization for this (it simply does not do anything).
Testing the following code:
Right after opening the Webview the sync dies and enters an infinite loop. With Proxyman, Charles, Safari Inspector, I cannot see ANY pending requests or recurring timers. Also I overwrote setTimeout and setInterval to see if there is some native events going on.
As our api is on a subdomain (api.example.com), it is important that the sharedCookiesEnabled is set to true. All webviews (no matter which urls are visible) stop working and are being blocked by a busy sync queue.
Do you have any idea how I can find out which event is put onto the queue?
I read this: https://wix.github.io/Detox/docs/troubleshooting/synchronization/
I already tried everything mentioned there and further added log level trace, but I cannot seem to find anything useful.
Your environment
Detox version: 20.20.0
React Native version: 0.72.6
Node version: 18.12.0
Device model: Simulator iPhone 15 Pro
OS: 17.4
Test-runner (select one): jest
The text was updated successfully, but these errors were encountered: