[AC-5596] Android: Filesystem StoragePermission
GitHub Issue | n/a |
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Invalid |
Resolution Date | 2018-02-13T13:19:19.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | 7.0.1, Android, Ti.SDK |
Reporter | sonufana4u |
Assignee | Shak Hossain |
Created | 2018-02-13T12:44:52.000+0000 |
Updated | 2018-02-13T13:48:42.000+0000 |
Description
When i call Ti.Filesystem.hasStoragePermission() method, it gives me an error.So i removed "()" and after going inside of requestStoragePermissions i get success but again when i check hasStoragePermission then it gives "undefined".
If i use only Ti.Filesystem.hasStoragePermission then its not giving an error but i am not sure whether its working actual or not.
Attachments
Can you please attach the full error and trace log of the app running?
Oh, you called
hasStoragePermission
instead ofhasStoragePermissions
as [documented here](http://docs.appcelerator.com/platform/latest/#!/api/Titanium.Filesystem-method-hasStoragePermissions). Please fix that and follow the docs to handle file permissions. Cheers!Ahh..My Bad..Earlier i was using one module so i kept the same function name.Thanks hans.