Closed faienz93 closed 1 year ago
I think, as the error suggests, that the problem is related to the permission and not to the plugin itself. For more details please see https://developer.android.com/training/data-storage#scoped-storage Let me know if this helps to resolve the problem. If not, can you please provide a repository in github demonstrating the problem
Hello, after some research and tests, I have noticed that the problem appears only if I use OneDrive to open the PDF. Using other applications such as Adobe Reader, Google Drive, Files by Google, Samsung Notes etc, the problem does not appear. To resolve the issue, based on this answer, I tried to add the following lines of code, but, unfortunally, without success:
intent.setDataAndType(path, contentType);
intent.setClipData(ClipData.newRawUri("", path));
No repository to reproduce the issue has been provided. The problem is related to the permission and not to the plugin itself. Closing as the issue is invalid.
Describe the bug First of all, thank you for your work. I decided to switch from @awesome-cordova-plugins/file-opener to @capacitor-community/file-opener because the first one is not more manteined. I have a problem/doubt on how to use or setup the plugin for proper use. The plugins seems to work smoothly but i get a strange error message in Android Studio:
Despide this error, my device is able to open the PDF, but I am afraid if other device cannot.
I have added, as described in the readme the permission even if I write on Data directory and not external storage, not more allowed
+ <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
My Implementation
and then use with capacitor/filesystem plugin
Am I making any mistakes?
Smartphone:
Additional context