Skip to content
TestsigmaDOCS

Desired Capabilities

Enable Capturing Screenshots (Android & iOS)

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);


In iOS applications, if you’re using third party tools to disable screenshot, you need to remove that restriction to allow inspection in Testsigma.