
some developer suggest to change on config.xml but still no change. and i
tried to remove shared project and move all view and javascript needed
to mobile project and still the same result. finally i decided to debug
on iOs device to get the error message. yeahh.. i got the error !! the problem is javascript does not fully loaded when calling plugin (LocalFileSystem). Just added a bit code below, everything work fine and white screen on iOs application is gone!!
ApplicationName.login = function (params) { function gotFS(fileSystem) { YourAppName.app.fileSystem = fileSystem; if (YourAppName.app.fileSystem == null) { return; }; YourAppName.app.fileSystem.root.getFile("login.txt", { create: true }, GetFileEntryReader, FileSystemFail); }; /* ... ... the other code ... ... */ viewShowing: function () { //the problem is here, error when call requestFileSystem setTimeout(function () { window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, gotFS, fail); }, 1000) } }; return viewModel; };