[TIMOB-20235] Android 6.0: requestStoragePermission is needed for various use cases
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | High |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2016-02-03T07:12:25.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Android |
Labels | n/a |
Reporter | Ashraf Abu |
Assignee | Ashraf Abu |
Created | 2016-01-14T05:05:32.000+0000 |
Updated | 2017-03-24T18:26:26.000+0000 |
Description
In Android 6.0, loading remote images requires storage permission. It doesn't need camera permissions.
A separate permission is required just for requesting storage permission. Example of use case is TIMOB-19899.
The implementation should include that if we find this method in the code, we also insert the required elements in the tiapp.xml manifest. I've requested the same for the other request*Permission methods in TIMOB-19933. It was argumented that it would not be relevant because why would you request the permission if you don't use it, but with this new request I think we should do so for all request permission methods for the sake of predictability.
I've submitted pull request. https://github.com/appcelerator/titanium_mobile/pull/7640 And, make module for immediate use. https://github.com/gimdongwoo/Ti-Android-RequestStoragePermission
Resolving this as duplicate of TIMOB-20251
Closing ticket as duplicate with reference to the linked issues.