Titanium JIRA Archive
Appcelerator Community (AC)

[AC-5596] Android: Filesystem StoragePermission

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionInvalid
Resolution Date2018-02-13T13:19:19.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labels7.0.1, Android, Ti.SDK
Reportersonufana4u
AssigneeShak Hossain
Created2018-02-13T12:44:52.000+0000
Updated2018-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

FileDateSize
Screen Shot 2018-02-13 at 12.16.56 PM.png2018-02-13T12:42:17.000+000040721

Comments

  1. Hans Knöchel 2018-02-13

    Can you please attach the full error and trace log of the app running?
  2. Hans Knöchel 2018-02-13

    Oh, you called hasStoragePermission instead of hasStoragePermissions 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!
  3. sonufana4u 2018-02-13

    Ahh..My Bad..Earlier i was using one module so i kept the same function name.Thanks hans.

JSON Source