You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Android, resuming a background app with a supported url (provided as an arg to launchApp) results in a timeout. This distinctively happens in case the app activity has been set launchMode=singleInstance.
Error: Error: Could not launch intent Intent { act=android.intent.action.VIEW dat=mytestscheme://test-string flg=0x10000000 cmp=com.somevendor/com.example.MainActivity } within 45 seconds. Perhaps the main thread has not gone idle within a reasonable amount of time? There could be an animation or something constantly repainting the screen. Or the activity is doing network calls on creation? See the threaddump logs. For your reference the last time the event queue was idle before your activity launch request was 1548160484943 and now the last time the queue went idle was: 1548160534341. If these numbers are the same your activity might be hogging the event queue.
at Client.execute (node_modules/detox/src/client/Client.js:80:28)
at InvocationManager.execute (node_modules/detox/src/invoke.js:11:33)
at EmulatorDriver.deliverPayload (node_modules/detox/src/devices/drivers/AndroidDriver.js:145:36)
at Device.launchApp (node_modules/detox/src/devices/Device.js:87:33)
at Context.it.only (e2e/15.urls.test.js:31:18)
at <anonymous>
The timeout takes place albeit the activity and expected content clearly residing in the foreground.
Steps to Reproduce
The following combination of a test and a main-activity definition will result in the aforementioned timeout:
Description
On Android, resuming a background app with a supported url (provided as an arg to
launchApp
) results in a timeout. This distinctively happens in case the app activity has been setlaunchMode=singleInstance
.The timeout takes place albeit the activity and expected content clearly residing in the foreground.
Steps to Reproduce
The following combination of a test and a main-activity definition will result in the aforementioned timeout:
AndroidManifest.xml
:Test (JS):
Detox, Node, Device, Xcode and macOS Versions
Device and verbose Detox logs
See description.
The text was updated successfully, but these errors were encountered: