How to solve white screen after splash screen ios on devexpress
4:14 AM
I have created project for mobile application using devexpress, i choose multy channel project. Finally everything works fine in
android but not for iPhone. The ios application i have build become white
screen after splash screen fade out. I have search from many sources but still no solution.
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; };
0 comments