Zend certified PHP/Magento developer

Outlook Giving an Error When Attaching File Programmatically – Android Kotlin [closed]

I am trying to attach a file to an email from my android app. Upon doing so, I receive the following error message:

‘Unable to attach files and photos. Outlook needs access to the files and photos on your device to attach them. You can grant this permission in Settings.’

All of the permissions are allowed and I can attach the file if I do it directly through Outlook rather than programmatically through my app. This is the same issue in the link below, but there doesn’t seem to be any resolution that I’ve found. Has anyone else experienced this and have a solution?

https://answers.microsoft.com/en-us/outlook_com/forum/all/outlook-app-having-permission-issues-on-samsung/8fb40d00-df59-4f51-ac62-70e0271c0280