My app targetting API 30. My app is integrated with com.github.barteksc:android-pdf-viewer:2.8.2
which uses InputStream & OutputStream to download & display file in pdfview.
Using Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOCUMENTS)
to store downloaded files.
I have included these permission in my AndroidManifest.xml
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE" />
if I remove MANAGE_EXTERNAL_STORAGE, my pdf doesn't gets loaded in android 10 & above.
If I include MANAGE_EXTERNAL_STORAGE permission google play rejecting my app.
How to fix this issue. I'm stuck here no where I cannot find proper troubleshooting for this issue. Please help me.