Hello there, 

Thanks for reading this. My app is Certified-level with this permission - 

# "device-storage:apps":   { "access": "readwrite" } 


However when I try to access the area 'used to store the user data needed by 
apps' I get this error message in the B2G Nightly build: 

# JavaScript error: app://voila/scripts/index.js, line 101: allapps is null 


This is my relevant code segment: 

--- 
        var allapps  = navigator.getDeviceStorage("apps"); 
        var request  = allapps.enumerate(); 

        request.onsuccess = function() 
        {
            var file = this.result; 
            alert("Get the file: " + file.name); 
        }

        request.onerror = function() 
        {
            alert("Unable to get the file: " + this.error); 
        } 
---   


Could anyone advise me on how to remedy this problem? I would like to generate 
a list of every app on the system (even those that came with the OEM). 

Much appreciated! 


Hugh 
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to