unity – Can’t save Screenshot to Android

so I have a method for taking a screenshot, it works just fine on PC, but I’ve tried everything and cannot get it to work on Android. I’ve tried creating custom folders, saving to persistentDataPath, saving to dataPath, and none of it works.

I had a way of testing it which said the name of the screenshot, logically it should keep the name as screenshot1 if it fails to take the screenshot, which it does on mobile, whereas the one on desktop increments properly.

Here’s the method I most recently attempted…

    public void captureScreenshot(string name)
    {
        if (!countDown)
        {
            for (int i = 1; i < 500; i++)
            {

                if (!File.Exists(Application.dataPath + name + i + ".png"))
                {
                    if (!Directory.Exists(Application.dataPath + "/appScreenshots"))
                    {
                        Directory.CreateDirectory(Application.dataPath + "/appScreenshots");
                    }
                    ScreenCapture.CaptureScreenshot(Application.dataPath + name + i + ".png");
                    break;
                }
            }
        }
    }

    public void captureScreenshot(string name)
    {
        if (!countDown)
        {
            for (int i = 1; i < 500; i++)
            {

                if (!File.Exists(Application.dataPath + name + i + ".png"))
                {
                    if (!Directory.Exists(Application.dataPath + "/appScreenshots"))
                    {
                        Directory.CreateDirectory(Application.dataPath + "/appScreenshots");
                    }
                    ScreenCapture.CaptureScreenshot(Application.dataPath + name + i + ".png");
                    break;
                }
            }
        }
    }

So, it works just fine on PC, just not on mobile… Do I need to get special permissions or something?

Thanks