Mobile App Architecture, Lifecycle, and Performance Questions
Cross-platform mobile engineering concerns above the language layer: the app and component lifecycle, state preservation across process death, memory and resource management on constrained devices, fragmentation, and performance optimization. Covers the architectural and runtime reasoning shared by iOS and Android work. A platform-agnostic mobile competency.
How do you measure and report frames per second and frame drops in a mobile application? Describe concrete instrumentation points and metrics (e.g., frame timestamps, frame-time percentiles, jank count), and explain how to surface these in dashboards for engineers and product managers.
Compare approaches to diagnosing memory issues in production for Android and iOS apps. Discuss system-level metrics you would collect (RSS, heap usage, peak memory), platform telemetry options (Android Vitals, Firebase Performance, Xcode metrics), privacy and overhead trade-offs for collecting heap snapshots in production, and sampling or throttling strategies to minimize impact.
A native module in a React Native Android app retains JS callbacks and causes memory to grow. Describe code-level fixes on both Android (Java/Kotlin) and iOS (Objective-C/Swift) to avoid retaining Activity/View references across callbacks. Include patterns for explicitly releasing callbacks, using weak references, and ensuring callbacks are invoked or cleared when the host is destroyed.
A third-party SDK you integrate allocates large native buffers and causes OOMs on low-memory devices. Describe containment strategies: wrap the SDK usage and call cleanup APIs promptly, limit buffer sizes or sampling, run SDK work in a separate process with memory limits and IPC, provide degraded fallback modes, monitor and throttle SDK usage, and coordinate with the SDK vendor for fixes.
Describe common memory leak patterns on Android and iOS (for example, static references to Activity/Context, unremoved listeners, retain cycles with closures) and give concrete mitigation techniques and detection workflows using heap dumps and allocation tracking.
Unlock Full Question Bank
Get access to all Mobile App Architecture, Lifecycle, and Performance interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.