简体   繁体   中英

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

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

5 GB is quite a sizable database. If you intend to distribute this app over the App Store, then you should be aware that the download limit for App Store apps is 2 GB.

You cannot change the launch timeout because that is a system function. Instead, you need to change when you do the load as fichek suggested.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM