我有一个应用程序,初始启动需要大约一分钟。之后只需几秒钟。初始启动时间长的原因是它需要从雅虎下载财务数据,我认为我无权重新分发这些数据。
这会导致 App Store 出现问题吗?
我已经编写了该应用程序以完美运行,因此不存在崩溃或阻塞主线程的问题。我的问题是是否有人处理过提交需要时间才能启动的应用程序。我没有(便宜的)加速它的方法。
from the Apple guidlines:
Apps are expected to launch and initialize themselves and start handling events in less than 5 seconds. If an app does not finish its launch cycle in a timely manner, the system kills it for being unresponsive. Thus, any tasks that might slow down your launch (such as accessing the network) should be executed asynchronously on a secondary thread.
just try to put this logic out of initial startup. show some message inside the application about this and run the download process async.