Desired Capabilities
Enable Capturing Screenshots (Android & iOS)
For Android Applications
Section titled “For Android Applications”You can enable capturing screenshots by simply removing the code below in the MainActivity.java or any other Activity you want to inspect.
getWindow().setFlags(WindowManager.LayoutParams.FLAG_SECURE,
WindowManager.LayoutParams.FLAG_SECURE);
For iOS Applications
Section titled “For iOS Applications”In iOS applications, if you’re using third party tools to disable screenshot, you need to remove that restriction to allow inspection in Testsigma.