question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

app process started by activateApp stops when the app goes to background

See original GitHub issue

The problem

https://github.com/appium/appium/issues/16941#issuecomment-1129626136

--pct-syskeys 0 monkey command stops the app when it calls home. The previous moneky command worked as “resume” the app instead of start particular activity,

Environment

  • Appium version (or git revision) that exhibits the issue: appium 2
  • Last Appium version that did not exhibit the issue (if applicable):
  • Driver version that exhibits the issue (only for Appium2): UIA2
  • Last driver version that did not exhibit the issue (if applicable, only for Appium2):
  • Desktop OS/version used to run Appium:
  • Node.js version (unless using Appium.app|exe):
  • Package manager name and version (we only officially support NPM):
  • Mobile platform/version under test:
  • Real device or emulator/simulator:
  • Appium CLI or Appium.app|exe:

Details

If necessary, describe the problem you have been experiencing in more detail.

Link to Appium logs

Create a GIST which is a paste of your full Appium logs, and link them here. Do NOT paste your full Appium logs here, as it will make this issue very long and hard to read! If you are reporting a bug, always include Appium logs!

Code To Reproduce Issue [ Good To Have ]

Please remember that with sample code it’s easier to reproduce the bug and it’s much faster to fix it.

Please git clone https://github.com/appium/appium and from the sample-code directory, use one of your favourite languages and sample apps to reproduce the issue.

In case a similar scenario is missing in sample-code, please submit a PR with one of the sample apps provided.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:15 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
KazuCocoacommented, May 23, 2022

UIA2 driver v2.2.0 has both changes. Please check them, thank you for your deep-diving into the issue.

0reactions
KazuCocoacommented, May 23, 2022

Thank you. The uia2 driver 2.1.3 currently has the default values in appium 2.0 environment as well.

"appium:intentCategory": "android.intent.category.LAUNCHER",
"appium:intentAction": "android.intent.action.MAIN",
"appium:intentFlags": "0x10200000"
Read more comments on GitHub >

github_iconTop Results From Across the Web

Windows background apps and your privacy - Microsoft Support
Control whether an app can run in the background. Select Start , then select Settings > Apps > Apps & features. Scroll to...
Read more >
How to push app in background and launch from same screen ...
1. driver.runAppInBackground(10); making the app to run in background for 10 seconds and launching it after 10 seconds from the Home screen ....
Read more >
Why is my application is not starting up on Windows?
Sometimes an application will not start up because a previous process from that application is still running in the background and did not...
Read more >
Background App - Appium
iOS tests with XCUITest can also use the mobile: terminateApp method to terminate the current app (see detailed documentation), and the mobile: activateApp...
Read more >
Why do Windows 10 foreground apps mysteriously launch as ...
Store probably runs for doing automatic update check. To turn it off, go to Start -> Settings -> Privacy -> Background apps and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found