i am working on a xamarin forms App, using media storage for reading and writing a txt file. Sometimes i have scenario to access the file from external storage. I have a scenario where i have to create an txt file in a specific path. The issue is code runs without exception but file is not getting generated.
Meanwhile app got rejected saying that ,All access permission should be granted only when there is required.
This happens higher API versions i.e, API>=30, Attaching error report by google team.
""Policy: All Files Access Permission Files and directory attributes on a user's device are regarded as personal and sensitive user data subject to the Personal and Sensitive Information policy and the following requirements: https://play.google.com/console/u/2/policy-emails/developers/6665275664097267853?id=4979911108359167602 1/3 20/12/2021, 10:00 Play Console Apps should only request access to device storage which is critical for the app to function, and may not request access to device storage on behalf of any third-party for any purpose that is unrelated to critical user-facing app functionality. Android devices running Android "R" (Android 11) or later, will require the MANAGE_EXTERNAL_STORAGE permission in order to manage access in shared storage. All apps that target R or later and request broad access to shared storage ("All files access") must successfully pass an appropriate access review prior to publishing. Apps allowed to use this permission must clearly prompt users to enable "All files access" for their app under "Special app access" settings. For more information on the R requirements, please see this help article. Read more about Use of All Files Access Permission See Android storage use cases and best practices Address this issue in the Play Console.""