Search code examples
iostimeoutlaunch

IPad app launch timeout


I'm developing an IPad application that use a prefeatched database with a synchronisation feature of course, when the app start, it checks for the existence of its database on Document directory, if database doesn't exists the application copy its database from ressource file to document directory.

when I start testing the application with a smaller database (< 300 MB) the application start correctly, but when I test it with the real database (5 GB) the application is stopped due to timeout

can anyone have an idea of how to increase the launch timeout for the application? is there another approch to do database copy without having to deal with this problem?

Thank's in advance

Regards


Solution

  • You should present the UI to the user as soon as possible and then start copying the database on background thread.