I use Application.CaptureScreenshot to get screenshot, that uses Application.persistentDataPath per documentation. It saves the screenshot to the app’s local files folder. I use FileProvider to provide screenshot to further services, all works fine.
But when I add the following permissions to the AndroidManifest.xml…
…the screenshot goes to the external storage automatically, and it makes FileProvider broken, as there is no more screenshot in the app’s local files folder (I need external storage permission for an entirely other feature).
Is there any chance to save screenshot to the local folder anyway? Any documentation that shed me a light on the backgrounds?
Well, it does. By default it is on the application’s files folder, as soon as I claim permissions for external storage, it gets replaced to application’s external (!) files folder. Would be great to have this documented, or any chance to alter this behaviour, since it has implicit consequences when someone use Application.CaptureScreenshot for example.