appium / WebDriverAgent

A WebDriver server for iOS and tvOS
Other
1.2k stars 377 forks source link

fix: Use monitoredApplicationWithProcessIdentifier API to fetch application objects from PID #776

Closed mykola-mokhnach closed 1 year ago

mykola-mokhnach commented 1 year ago

Related to https://github.com/appium/WebDriverAgent/pull/774

mykola-mokhnach commented 1 year ago

No change... but this pr itself lgtm.

Maybe then try to add logs after each line in the fb_activeApplicationWithDefaultBundleId method to precisely isolate the particular API call that creates the delay. Then we may try to find alternatives to it or find out what exactly creates the delay

mykola-mokhnach commented 1 year ago

I am not 100% convinced to merge this PR especially taking into account it does not fix the original issue related to testmanagerd crashes.