However, if other audio files are also to be accessed by the app, READ permissions must also be requested and granted for Android > 10. For Android 11 and 12 READ_EXTERNAL_STORAGE and for Android 13+ READ_MEDIA_AUDIO. (In this case my extension ReadMediaPermissions is needed.)
Actually pdf file download from server and store in download folder but when pdf file open in my app then show error that reading permission denied and pdf file not opened. This error only come out in android 13.
In this image, you’ve disabled the “record audio” block. What does this mean? Should I use the audio permission or the RECORD_AUDIO permission?
I couldn’t find the ReadMediaPermission1.Sdk Version Block. Can you help me locate it?
Additionally, I display all the audio files recorded within the app. Could you please guide me on how to do that? I’m quite confused. Here are the blocks I’ve used, though I realize they may not be correct.
Your guidance would be greatly appreciated. This will also benefit all Kodular users who record and display audio files in their apps. Thank you @bodymindpower
I want to express my sincere efforts in trying the blocks before reaching out. Initially, I attempted the blocks you recommended; however, I encountered a hurdle as I couldn’t locate the ReadMediaPermission1.Sdk Version Block. Following your clarification on these points, I made another attempt, and the Audio Permission is now functioning properly.
However, I encountered a secondary issue where the notifier did not prompt me for the WriteExternalStorage permission. Subsequently, when attempting to play the recorded sound, I received a permission pop-up. Upon granting permission, the sound did not play initially. Strangely, it only played after stopping the recording and trying to play it again.
This image depicts a popup that emerges when I initiate the playback of the recording.
I’m having difficulty comprehending the process of acquiring this read permission, along with understanding how to obtain all three permissions. Could you kindly provide guidance on implementing these actions through the use of blocks?
I appreciate your assistance and would be grateful for any guidance or insights you can provide to address this matter. Thank you for your time and consideration.
Certainly, I found the extension on the N… community , however, as mentioned by bodymindpower, I can alternatively utilize the Device_Utilities component from Kodular. Thanks @Taifun for been involved in the issue.
As I have already explained twice, I have shown all the required blocks. READ permission on Android < 30 is granted implicitly once WRITE permissions is granted (so it no longer needs to be requested).
And once again: On Android 11+, no storage permissions are required for files that were created by the app itself.
If my blocks are used exactly like I showed and there are still problems, there is a bug somewhere with Kodular and/or WRITE permission is not declared in the Manifest for Android < 30. However, this shouldn’t be the case, at least not if you use my DeclareReadWrite extension.
And next time please show all relevant blocks completely.
Thank you very much for your dedicated efforts. I truly appreciate your commitment to guiding me through the entire process. Regrettably, I haven’t been able to grasp it fully yet, and I apologize for that.
I have attached a test AIA file that I specifically created to evaluate recording, storage, and read permissions. I kindly request your assistance in identifying and rectifying any issues. Two of your extensions are integrated into this project. Despite my attempts and thorough research on the Kodular community, I have been unable to make it work or comprehend how to implement it.
Your support in resolving this matter would be immensely valuable. I believe it will not only benefit me but also assist others in understanding the complete process of recording, playing, and displaying files in the app.
Only essential blocks and extensions are included; without them, the problem cannot be resolved, following the guidance provided by @Taifun
A slash (/) is missing, so the sound recording is not saved in the ASD.
The Sound component incorrectly requests READ permissions for the Shared folders on Android 11+, even if the file was created by the app itself. (This wouldn’t happen e.g. with the TaifunPlayer extension.)
If you want to accept this (bug), you have to grant READ_EXTERNAL_STORAGE also on Android 11 & 12 and READ_MEDIA_AUDIO on Android 13+.
So, as I said, if my blocks wouldn’t work, there must be another bug in Kodular. QED
In which part is it absent? Is it within this block?
However, there’s nothing I can do in that regard, correct? Should I consider substituting the player component with the TaifunPlayer extension to address this problem?
I’m genuinely unsure about how to carry out that task, which is why I shared the AIA file. I kindly request, as a favor, could you please perform the necessary steps in the AIA file and send it back to me? I’m struggling to comprehend the execution process.
Sure, if it doesn’t function as expected, I’ll approach Pavi for assistance in resolving the issue.
Following your suggestions, I implemented the following changes in the app:
Added a slash (/)
Integrated the TaifunPlayer extension
Incorporated your ReadMediaPermissions extension and declared those permissions on the second screen.
Despite these efforts, the issue persists and, in fact, has escalated with more errors than before. At this point, I understand that resolving this may require your intervention. Therefore, I kindly request your assistance in fixing it, preferably within the AIA file. This way, I won’t need to create additional threads due to my inability to resolve the problem.
If you can address the issue within the AIA file and share it in this thread, it would greatly benefit not only me but also others seeking a similar solution. I’ve also had a discussion with Pavi, and he has expressed his commitment to prioritize and resolve this permission issue promptly.
That’s truly fantastic! It’s now running smoothly without any errors. I have complete confidence that only you could achieve this, and I’m incredibly grateful for your efforts in resolving the issue. Could you please share the solved AIA with me so that I can seamlessly integrate it into my project?
Additionally, I mentioned earlier that I lack a device with a version lower than Android 11 for testing. With these improvements, can I expect this method to work seamlessly across all Android versions without encountering any errors? Once again, thank you so much for your invaluable assistance.