While performing native app automation on iOS real device, once we run the script app is closing/ appearing to background, immediately after launch. Here are capabilities we used
platformName: ‘iOS’,
noReset: true,
fullReset: false,
maxInstances: 1,
automationName: ‘XCUITest’,
deviceName: ‘iPhoneXR’,
platformVersion: 15.1,
bundleId: “”,
udid: ““,
app: “”,
useNewWDA: false,
xcodeOrgId: “”,
xcodeSigningId: “iPhone Developer”,
bootstrapPath: “/usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent”,
agentPath: “/usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj”
App seems to be closed on the screen but when I swipe up I see the app on the background. So I tried activeApp to activate the app. Till app closed abruptly
Also used queryAppState and we are getting ‘4’ as a result which means app is on foreground but actually its not.
Please help.