Titanium JIRA Archive
Appcelerator Community (AC)

[AC-3631] Titanium.Filesystem.hasStoragePermissions() alternative for Windows Phone

GitHub Issuen/a
TypeNew Feature
Priorityn/a
StatusClosed
ResolutionInvalid
Resolution Date2016-05-22T05:04:59.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
LabelsWindows-Phone
ReporterSanchi Varma
AssigneeShak Hossain
Created2016-05-16T11:51:37.000+0000
Updated2016-05-22T05:04:59.000+0000

Description

Hi, I am developing a cross platform mobile app. I have used :
function check(val) {
	if (!Titanium.Filesystem.hasStoragePermissions()) {		
		Titanium.Filesystem.requestStoragePermissions(function(event) {			
			if (!e.success) {
				alert('Please grant permission.');
				if (val <= 0) {
					check(val + 1);
				}
			}
		});
	}
	return;
}

I am getting error :
[ERROR] Application Error: "Runtime Error during backToStart event: Titanium.Filesystem.hasStoragePermissions is not a function. (In 'Titanium.Filesystem.hasStoragePermissions()', 'Titanium.Filesys
tem.hasStoragePermissions' is undefined)"      
I need alternatives for Filesystem APIs for Windows Phone for these 3 APIs : 1) Titanium.Filesystem.hasStoragePermissions 2) Titanium.Filesystem.requestStoragePermissions 3) Titanium.Filesystem.applicationCacheDirectory

Comments

  1. Sanchi Varma 2016-05-16

    I need alternatives for Filesystem APIs for Windows Phone for these 3 APIs : 1) Titanium.Filesystem.hasStoragePermissions 2) Titanium.Filesystem.requestStoragePermissions 3) Titanium.Filesystem.applicationCacheDirectory
  2. Nazmus Salahin 2016-05-17

    Hello [~sanchi1706@gmail.com], Thanks 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. Thanks in advance
  3. Nazmus Salahin 2016-05-22

    I cant find such features in native Windows API documentation. So I am closing this issue.

JSON Source