Hi everyone,
I need some guidance regarding Android app startup performance.
I’m working on a large production app (~6 million users) and currently facing slow startup time.
Current setup:
• In the Application.onCreate() we initialize multiple SDKs (Firebase, payment SDKs, Facebook, etc.).
• In the Splash Activity, I do some initial checks to decide the next screen and also make an API call to fetch required data.
Because of this, the app startup time has increased.
Startup metrics (Macrobenchmark):
timeToInitialDisplayMs
min: 1283 ms
median: 1305 ms
max: 1542 ms
Device: Pixel 3a (Android 12)
My questions:
• What are the best practices for initializing multiple SDKs without impacting startup time?
• Should SDK initialization be lazy / deferred, and if yes, how do you usually decide what to defer?
• Is it okay to make network calls in Splash, or should this be moved elsewhere?
• What approach do you personally prefer in large-scale apps?
I’d really appreciate any suggestions, patterns, or real-world experiences you can share.
Thanks in advance!
not kotlin but kotlin colored 5