How can Test Background Execution Limits

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP

How can Test Background Execution Limits



About Background Execution Limits, I found this comment.



Under certain circumstances, a background app is placed on a temporary whitelist for several minutes. While an app is on the whitelist, it can launch services without limitation, and its background services are permitted to run.



I used startService() method before. When I updated targetSDK 27, I experienced IllegalStateException as Background Execution Limits. So I have to resolve this behavior change, But hard to make testable circumstances. Like below comment at Android 8.0 Behavior Changes.


startService()


IllegalStateException



The startService() method now throws an IllegalStateException if an app targeting Android 8.0 tries to use that method in a situation when it isn't permitted to create background services.



How can I force to remove background app in whitelist? Just wait for this?









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Comments

Popular posts from this blog

Executable numpy error

PySpark count values by condition

Trying to Print Gridster Items to PDF without overlapping contents