Cant take screenshots on Android with ScreenCapture.CaptureScreenshot

It works fine on PC using Persistent data path.

ScreenCapture.CaptureScreenshot(Application.persistentDataPath + "/" + "screenshot.png");

However using that on Android doubles up on the path.
And using just

ScreenCapture.CaptureScreenshot("screenshot.png");

Doesn’t do anything at all.

Any suggestions? I’ve already checked so many forum posts but am yet to find a solution.

First of all, you’ll need to get all required permissions from Android OS: an access to disk storage and maybe something to be able to capture screen (this is potentially makes user vulnerable to data stealing, so should be protected somehow). Check this out.