{ "id": "160266", "key": "AC-3631", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2016-05-22T05:04:59.000+0000", "created": "2016-05-16T11:51:37.000+0000", "labels": [ "Windows-Phone" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-05-22T05:04:59.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [], "description": "Hi,\r\n\r\nI am developing a cross platform mobile app.\r\nI have used :\r\n\r\n\r\n{code:java}\r\nfunction check(val) {\r\n\tif (!Titanium.Filesystem.hasStoragePermissions()) {\t\t\r\n\t\tTitanium.Filesystem.requestStoragePermissions(function(event) {\t\t\t\r\n\t\t\tif (!e.success) {\r\n\t\t\t\talert('Please grant permission.');\r\n\t\t\t\tif (val <= 0) {\r\n\t\t\t\t\tcheck(val + 1);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\treturn;\r\n}\r\n\r\n{code}\r\n\r\nI am getting error : \r\n\r\n\r\n{code:java}\r\n[ERROR] Application Error: \"Runtime Error during backToStart event: Titanium.Filesystem.hasStoragePermissions is not a function. (In 'Titanium.Filesystem.hasStoragePermissions()', 'Titanium.Filesys\r\ntem.hasStoragePermissions' is undefined)\" \r\n{code}\r\n \r\nI need alternatives for Filesystem APIs for Windows Phone for these 3 APIs :\r\n\r\n1) Titanium.Filesystem.hasStoragePermissions\r\n2) Titanium.Filesystem.requestStoragePermissions\r\n3) Titanium.Filesystem.applicationCacheDirectory\r\n ", "attachment": [], "flagged": false, "summary": "Titanium.Filesystem.hasStoragePermissions() alternative for Windows Phone", "creator": { "name": "sanchi1706@gmail.com", "key": "sanchi1706@gmail.com", "displayName": "Sanchi Varma", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "sanchi1706@gmail.com", "key": "sanchi1706@gmail.com", "displayName": "Sanchi Varma", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Operating System\r\nName = Microsoft Windows 10 Pro\r\nVersion = 10.0.10586\r\nArchitecture = 32bit\r\nCPUs = 4\r\nMemory = 7.9GB\r\nNode.js\r\nNode.js Version = 0.12.7\r\nnpm Version = 2.11.3\r\nTitanium CLI\r\nCLI Version = 5.0.8\r\nnode-appc Version = 0.2.31\r\nTitanium SDKs\r\n5.4.0.v20160509133737\r\nVersion = 5.4.0\r\nInstall Location = C:\\ProgramData\\Titanium\\mobilesdk\\win32\\5.4.0.v20160509133737\r\nPlatforms = android, mobileweb, windows\r\ngit Hash = 50dec34\r\ngit Timestamp = 05/09/16 13:37\r\nnode-appc Version = 0.2.35\r\n5.2.2.GA\r\nVersion = 5.2.2\r\nInstall Location = C:\\ProgramData\\Titanium\\mobilesdk\\win32\\5.2.2.GA\r\nPlatforms = android, mobileweb, windows\r\ngit Hash = b685ddb\r\ngit Timestamp = 03/28/16 14:12\r\nnode-appc Version = 0.2.33\r\nIntel® Hardware Accelerated Execution Manager (HAXM)\r\nNot installed\r\nJava Development Kit\r\nVersion = 1.7.0_80\r\nJava Home = C:\\Program Files (x86)\\Java\\jdk1.7.0_80\r\nGenymotion\r\nPath = not found\r\nGenymotion Executable = not found\r\nGenymotion Player = not found\r\nHome = not found\r\nVirtualBox\r\nExecutable = not found\r\nVersion = unknown\r\nAndroid SDK\r\nAndroid Executable = not found\r\nADB Executable = not found\r\nSDK Path = not found\r\nAndroid NDK\r\nNDK Path = not found\r\nNDK Version = not found\r\nAndroid Platforms\r\nNone\r\nAndroid Add-Ons\r\nNone\r\nAndroid Emulators\r\nNone\r\nGenymotion Emulators\r\nNone\r\nConnected Android Devices\r\nNone\r\nMicrosoft (R) Visual Studio\r\n12.0\r\nPath = C:\\Program Files (x86)\\Microsoft Visual Studio 12.0\\\r\nCLR Version = v4.0.30319\r\nMSBuild Version = v12.0.40629.0\r\nWindows Phone SDKs = not installed\r\n14.0 (selected)\r\nPath = C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\\r\nCLR Version = v4.0.30319\r\nMSBuild Version = v14.0.25123.0\r\nWindows Phone SDKs = not installed\r\nMicrosoft (R) Windows Phone SDK\r\n10.0 *Not supported by Titanium SDK 5.2.2.GA*\r\nPath = C:\\Program Files (x86)\\Windows Kits\\10\\\r\n8.1 (selected)\r\nPath = C:\\Program Files (x86)\\Microsoft SDKs\\Windows Phone\\v8.1\\\r\nWindows PowerShell\r\nEnabled = yes\r\nWindows Phone Emulators\r\n8.1\r\nEmulator 8.1 U1 WVGA 4 inch 512MB\r\nUDID 8-1-7\r\nEmulator 8.1 U1 WVGA 4 inch\r\nUDID 8-1-8\r\nEmulator 8.1 U1 WXGA 4.5 inch\r\nUDID 8-1-9\r\nEmulator 8.1 U1 720P 4.7 inch\r\nUDID 8-1-10\r\nEmulator 8.1 U1 1080P 5.5 inch\r\nUDID 8-1-11\r\nEmulator 8.1 U1 1080P 6 inch\r\nUDID 8-1-12\r\nEmulator 8.1 U1 qHD 5 inch\r\nUDID 8-1-13\r\nEmulator 8.1 WVGA 4 inch 512MB\r\nUDID 8-1-14\r\nEmulator 8.1 WVGA 4 inch\r\nUDID 8-1-15\r\nEmulator 8.1 WXGA 4.5 inch\r\nUDID 8-1-16\r\nEmulator 8.1 720P 4.7 inch\r\nUDID 8-1-17\r\nEmulator 8.1 1080P 5.5 inch\r\nUDID 8-1-18\r\nEmulator 8.1 1080P 6 inch\r\nUDID 8-1-19\r\n10.0\r\nMobile Emulator 10.0.10586.0 WVGA 4 inch 512MB\r\nUDID 10-0-1\r\nMobile Emulator 10.0.10586.0 WVGA 4 inch 1GB\r\nUDID 10-0-2\r\nMobile Emulator 10.0.10586.0 WXGA 4.5 inch 1GB\r\nUDID 10-0-3\r\nMobile Emulator 10.0.10586.0 720p 5 inch 1GB\r\nUDID 10-0-4\r\nMobile Emulator 10.0.10586.0 1080p 6 inch 2GB\r\nUDID 10-0-5\r\nMobile Emulator 10.0.10586.0 QHD 5.2 inch 3GB\r\nUDID 10-0-6\r\nWindows Phone Devices\r\nDevice\r\nUDID 0\r\nAndroid Issues\r\n! Unable to locate an Android NDK.\r\nWithout the NDK, you will not be able to build native Android Titanium modules.\r\nIf you have already downloaded and installed the Android NDK, you can tell Titanium where the\r\nAndroid NDK is located by running 'titanium config android.ndkPath /path/to/android-ndk',\r\notherwise you can install it by running 'titanium setup android' or manually downloading from\r\nhttp://appcelerator.com/android-ndk.\r\n× Unable to locate an Android SDK.\r\nIf you have already downloaded and installed the Android SDK, you can tell Titanium where the\r\nAndroid SDK is located by running 'titanium config android.sdkPath /path/to/android-sdk',\r\notherwise you can install it by running 'titanium setup android' or manually downloading from\r\nhttp://appcelerator.com/android-sdk.", "comment": { "comments": [ { "id": "385782", "author": { "name": "sanchi1706@gmail.com", "key": "sanchi1706@gmail.com", "displayName": "Sanchi Varma", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I need alternatives for Filesystem APIs for Windows Phone for these 3 APIs :\r\n\r\n1) Titanium.Filesystem.hasStoragePermissions\r\n2) Titanium.Filesystem.requestStoragePermissions\r\n3) Titanium.Filesystem.applicationCacheDirectory", "updateAuthor": { "name": "sanchi1706@gmail.com", "key": "sanchi1706@gmail.com", "displayName": "Sanchi Varma", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-05-16T11:55:14.000+0000", "updated": "2016-05-16T12:00:42.000+0000" }, { "id": "385864", "author": { "name": "nsalahin", "key": "nsalahin", "displayName": "Nazmus Salahin", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello [~sanchi1706@gmail.com],\r\n\r\nThanks for reporting. We really appreciate your contribution. You have mentioned some feature request for Windows platform in this ticket. These feature will be considered if they are available in native Windows platform. If you find these features to be available in native Windows then please mention that with reference.\r\n\r\nThanks in advance", "updateAuthor": { "name": "nsalahin", "key": "nsalahin", "displayName": "Nazmus Salahin", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2016-05-17T05:50:09.000+0000", "updated": "2016-05-17T05:50:09.000+0000" }, { "id": "386400", "author": { "name": "nsalahin", "key": "nsalahin", "displayName": "Nazmus Salahin", "active": true, "timeZone": "Asia/Dhaka" }, "body": "I cant find such features in native Windows API documentation. So I am closing this issue.", "updateAuthor": { "name": "nsalahin", "key": "nsalahin", "displayName": "Nazmus Salahin", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2016-05-22T05:04:11.000+0000", "updated": "2016-05-22T05:04:11.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }