Create A File Browser

Hi, i follow this tutorial to manage file system, but when i start the app is a white page

so i can’t browse the file. Any idea???solutions??other tutorial?

can you see any errors in the developers console on the browser?

if its a white page that means theres errors

i think it should work only on device, but in the console no errors…so i don’t know where is the error
it is not all white, the title and the header
there are
It seems like don’t show nothing, like if there isn’t the authorization to read the memory

solved…it is a problem with autorization…
just put this in config.xml

maybe can be useful for other people

wat authorization??can you tell me how you solved it?? m facing the same problem right now?

hi, try use this in config.xml
< preference name=“AndroidPersistentFileLocation” value=“Internal” />
< preference name=“AndroidPersistentFileLocation” value=“Compatibility” />

1 Like

Thanks a lot bro!! I

1 Like

can you tell me how to do this in ios, coz in iPhone all I get is NoCloud. I think its the same problem in iPhone as well with the authorization?

unfortunatly i don’t have ios system, so i have to test in ios in the future, but waht problem you have? maybe i can give you some advice and you can test it.

try this < preference name=“iosPersistentFileLocation” value=“Library” />
and let me know

it now shows complete blank screen with only the titlebar…

you use this? preference name=“iosPersistentFileLocation” value=“Library”

Yup m using that but still blank screen…

any errors in console? if not the problem is the configuration i think…because ios file system is different from android

Here is the screenshot for my config file

And this is my controller, where I put up a console to check for the entries

And here is the output in Xcode, I do not understand whats going on

but you test in real device or emulator? try on real device

I tested in both device as well as emulator, same result!

damn ionic… if you want i can give you my code… but i think is the same problem…i’ll work on it

try this in getEntriesAtRoot
//Find persistent storage path
window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, function(fileSystem){
persistentFilePath = fileSystem.root.toURL();
}, function(){
alert(“No access to read persistent storage path”);

it’s just to work around, not the solution.