# Mobile App Developer roadmap

> Build, test and ship Android and iOS apps with React Native and Expo, Flutter, or native Kotlin and Swift.

Canonical: https://www.internhack.in/roadmaps/tracks/mobile
Last updated: 2026-11-28

19 sections, 71 topics, about 327 hours.

A complete path from your first screen to a published, monitored app. You start by choosing a platform approach (React Native with Expo is the recommended default, with Flutter, native Android and native iOS as alternatives), learn the language and UI fundamentals, then go deep on navigation, state, networking, offline-first data, authentication, device APIs and push notifications. The later sections cover what separates hobby projects from professional apps: animations and performance, testing from unit to end-to-end, accessibility and security, signing, CI/CD, store publishing, OTA updates, crash reporting and analytics, finishing with a production-grade capstone and interview preparation.

## Outcomes

- Choose between React Native, Flutter and native development and justify the choice for a project
- Build responsive, accessible screens that follow Material 3 and Apple Human Interface Guidelines
- Implement navigation, state management, networking and offline-first data sync
- Integrate authentication, push notifications, deep links and device capabilities with proper permissions
- Profile and fix performance problems and write unit, component and end-to-end tests
- Secure user data following OWASP MASVS and store secrets correctly
- Automate signed builds with CI/CD, publish to Google Play and the App Store, and ship OTA updates
- Monitor crashes and product analytics in production and iterate on real user data

## Prerequisites

- Comfort using a computer, terminal and code editor
- Basic programming experience in any language is helpful but not required
- A smartphone for testing (Android or iOS); a Mac is needed for native iOS builds

## Orientation: How Mobile Apps Work

Understand what makes mobile different, set up a working toolchain, and put your code under version control from day one.

### The Mobile App Landscape

core · beginner · about 3 h · https://www.internhack.in/roadmaps/tracks/mobile/mobile-landscape

How native, cross-platform and web-based apps differ, and what the app lifecycle and app stores mean for the way you build software.

A mobile app is a program that runs inside a strict sandbox controlled by the operating system. Unlike a web page, it is installed from a store, can be killed at any moment to save memory, runs on a battery, and often works on a flaky network. Almost every design decision you make later traces back to these constraints.

#### Three ways to build
- **Native**: Kotlin for Android, Swift for iOS. Full access to platform APIs and the best fidelity, but two codebases.
- **Cross-platform**: React Native or Flutter. One codebase that ships to both stores. React Native renders real native views; Flutter draws every pixel with its own engine.
- **Web-based**: PWAs or WebView wrappers. Cheap to start, but limited device access and a less native feel.

#### The app lifecycle
Apps move between states such as *foreground*, *background* and *terminated*. The OS can suspend you without warning, so you must save important state early, release resources when backgrounded, and restore the screen the user was on when they return.

#### Two gatekeepers
Apple and Google review, sign and distribute your app. That means release cycles are slower than on the web, rollbacks are harder, and store policies (privacy labels, permission justifications) are part of engineering work.

**Good enough to move on:** you can explain the trade-offs between native and cross-platform to a teammate and describe what happens to an app when the user presses the home button.

Key concepts: Native vs cross-platform vs web, App sandbox and OS constraints, App lifecycle states, How app stores distribute and review apps, Progressive Web Apps, Android and iOS market share by region.

Mini project: Write a one-page comparison for a fictional food-delivery startup recommending native, React Native or Flutter, with three reasons and one risk for your pick.

Self-check: Why can't a mobile app assume it will keep running after the user switches to another app, and what should it do about it?

Resources:
- [Android app fundamentals](https://developer.android.com/guide/components/fundamentals) (Android Developers)
- [React Native: Introduction](https://reactnative.dev/docs/getting-started) (React Native)
- [Flutter documentation](https://docs.flutter.dev/) (Flutter)

### Development Environment, Emulators & Devices

core · beginner · about 4 h · https://www.internhack.in/roadmaps/tracks/mobile/dev-environment

Install the SDKs, IDEs, emulators and simulators you need, and learn to run and debug an app on a real phone.

Before writing features you need a reliable loop: edit code, see it on a device, inspect what went wrong. Setting this up is often the most frustrating step, so give it proper attention.

#### Core tools
- **Android Studio** ships the Android SDK, the emulator (AVD) and platform tools like `adb`. You need it even for React Native and Flutter builds.
- **Xcode** (macOS only) provides the iOS SDK, simulators and code signing. Without a Mac you can still build iOS apps through cloud services such as EAS Build, but local debugging is limited.
- **VS Code** is a common editor for React Native and Flutter projects.

#### Emulators vs real devices
Emulators and simulators are fast to iterate on, but they hide real-world problems: slow CPUs, small screens, notches, real GPS drift, and push notifications (which need a real iOS device in many setups). Test on at least one mid-range Android phone regularly.

#### Debugging basics
- Read device logs (`adb logcat`, Xcode console, Metro or `flutter run` output).
- Use hot reload to keep state while tweaking UI.
- Enable developer options and USB debugging on Android.

#### Common pitfalls
Mismatched Java/JDK versions, missing environment variables like `ANDROID_HOME`, and outdated CocoaPods are the usual culprits. Follow the official setup guide for your chosen framework line by line rather than mixing blog posts.

**Good enough to move on:** you can run a starter app on an emulator and on your own phone, and read its logs.

Key concepts: Android Studio and the Android SDK, Xcode and iOS simulators, Android emulator (AVD) setup, Running on a physical device, Reading device logs, Hot reload and fast refresh, Cloud builds when you lack a Mac.

Mini project: Create a hello-world app, run it on an emulator and a real phone, add a log statement on a button tap, and capture that log line from the device.

Self-check: Name two classes of bugs you are likely to miss if you only ever test on an emulator.

Resources:
- [Set up your environment (React Native)](https://reactnative.dev/docs/environment-setup) (React Native)
- [Android Studio user guide](https://developer.android.com/studio/intro) (Android Developers)
- [Xcode documentation](https://developer.apple.com/documentation/xcode) (Apple)

### Git & Version Control for App Projects

core · beginner · about 5 h · https://www.internhack.in/roadmaps/tracks/mobile/git

Track changes, branch safely and collaborate with Git, including the mobile-specific files you should and should not commit.

Git records every change to your project so you can experiment without fear, collaborate, and trace when a bug appeared. Every mobile CI/CD pipeline you meet later starts from a Git repository.

#### The daily workflow
- `git clone`, `git status`, `git add`, `git commit`, `git push`, `git pull`.
- Create a branch per feature (`git switch -c feature/login`), open a pull request, merge after review.
- Write small commits with clear messages so history is readable.

#### Mobile-specific concerns
- Use a proper `.gitignore`: exclude `node_modules`, `build/`, `.gradle`, `Pods/` (team choice), `DerivedData` and local IDE files.
- **Never commit secrets**: keystores, `.p12` certificates, provisioning profiles, API keys and `google-services.json` for production should live in a secret store or CI variables.
- Lock files (`package-lock.json`, `pubspec.lock`, `Podfile.lock`) should be committed so builds are reproducible.
- Tag releases (`v1.4.0`) so you can map store builds back to code.

#### Pitfalls
Committing a signing key to a public repo is a real and common mistake; if it happens, rotate the key immediately. Large binary assets bloat the repo; consider Git LFS for big media.

**Good enough to move on:** you can branch, commit, resolve a simple merge conflict and open a pull request on GitHub.

Key concepts: Commits, branches and merges, Remote repositories and pull requests, Resolving merge conflicts, .gitignore for mobile projects, Keeping secrets out of the repo, Release tags, Git LFS for large assets.

Mini project: Put your hello-world app on GitHub with a correct .gitignore, develop a small change on a branch, and merge it through a pull request.

Self-check: Your Android upload keystore was pushed to a public repository. What exactly do you do next?

Resources:
- [Pro Git book](https://git-scm.com/book/en/v2) (git-scm.com)
- [GitHub Docs: Get started](https://docs.github.com/en/get-started) (GitHub)

## Choose Your Platform Approach

Pick one stack to build with. React Native with Expo is our default; Flutter and fully native development are equally valid paths.

### React Native with Expo

recommended · beginner · about 4 h · https://www.internhack.in/roadmaps/tracks/mobile/react-native-expo

Build real native apps for Android and iOS from one JavaScript/TypeScript codebase, using Expo for tooling, builds and updates.

React Native lets you write components in JavaScript or TypeScript using React, and renders them as real native views (`View` becomes an Android `ViewGroup` or an iOS `UIView`). **Expo** is the recommended framework on top of it: it provides a curated SDK of device APIs, file-based routing, cloud builds and over-the-air updates.

#### Why we recommend it
- One codebase for both stores, with a very large ecosystem.
- Skills transfer directly from web React, which widens your job options.
- Expo removes most native build pain; you can still drop into native code with development builds and config plugins when needed.

#### How a project looks
Create an app with `npx create-expo-app`, run `npx expo start`, and scan the QR code or launch a simulator. Screens live in an `app/` folder (Expo Router), components are functions returning JSX, and styling uses `StyleSheet` with a Flexbox layout model.

#### Trade-offs to know
- Very heavy custom rendering (games, complex canvases) is better served by Flutter, Skia-based libraries or native code.
- You will occasionally need to read native error messages from Gradle or Xcode.

**Good enough to move on:** you created an Expo app, edited a screen, and saw fast refresh update it on your phone.

Key concepts: What React Native renders under the hood, Creating an app with create-expo-app, Expo Go vs development builds, Project structure and the app folder, Expo SDK packages, When to eject into native code.

Mini project: Scaffold an Expo app with two screens (Home and About) and a button that navigates between them, running on a real phone.

Self-check: What is the difference between running your app in Expo Go and in a development build, and when do you need the latter?

Resources:
- [Expo documentation](https://docs.expo.dev/) (Expo)
- [React Native: Introduction](https://reactnative.dev/docs/getting-started) (React Native)
- [Expo tutorial](https://docs.expo.dev/tutorial/introduction/) (Expo)

### Flutter

alternative · beginner · about 4 h · https://www.internhack.in/roadmaps/tracks/mobile/flutter

Build apps for Android, iOS and more from one Dart codebase, with a rendering engine that draws every pixel for consistent UI.

Flutter is Google's UI toolkit. You write **Dart** code that composes **widgets**, and Flutter's engine renders them itself instead of using native UI components. That gives pixel-identical UI across platforms and very smooth custom graphics.

#### Strengths
- Excellent tooling: `flutter doctor` diagnoses setup, hot reload is fast and reliable.
- A rich set of Material and Cupertino widgets out of the box.
- Great for highly branded, animation-heavy or custom-drawn interfaces.

#### How a project looks
Run `flutter create my_app`, then `flutter run`. Everything starts at `main()` calling `runApp()` with a root widget. UI is a tree of widgets like `Scaffold`, `Column`, `Text` and `ElevatedButton`. Dependencies live in `pubspec.yaml` and come from pub.dev.

#### Trade-offs
- Dart is less widely used outside Flutter, so skills transfer less than JavaScript.
- Because widgets are re-implemented, platform look-and-feel updates arrive only when Flutter updates them.
- App binaries are somewhat larger than a minimal native app.

**Good enough to move on:** `flutter doctor` is green and you have modified the counter starter app on a device.

Key concepts: Installing Flutter and flutter doctor, Widgets as the unit of UI, Project layout and pubspec.yaml, Hot reload vs hot restart, Material and Cupertino widget sets, Flutter for web and desktop.

Mini project: Turn the Flutter counter starter into a tip calculator with a text field, a slider for tip percentage and a live total.

Self-check: Flutter does not use native buttons. What are one advantage and one disadvantage of that design?

Resources:
- [Flutter documentation](https://docs.flutter.dev/) (Flutter)
- [Get started with Flutter](https://docs.flutter.dev/get-started) (Flutter)

### Native Android (Kotlin + Jetpack Compose)

alternative · beginner · about 4 h · https://www.internhack.in/roadmaps/tracks/mobile/native-android

Build Android apps the way Google recommends: Kotlin as the language and Jetpack Compose for declarative UI.

Native Android development means writing **Kotlin** against the Android SDK and Jetpack libraries, with **Jetpack Compose** as the modern UI toolkit. It is the right choice if you want to specialise in Android, need deep platform integration, or join a team with an existing native codebase.

#### Strengths
- First access to every new Android API and Play feature.
- Best performance and smallest overhead, with official tooling in Android Studio.
- Kotlin is a pleasant, modern language that also works on servers and via Kotlin Multiplatform.

#### How a project looks
Create a project in Android Studio with the "Empty Activity" (Compose) template. Your UI is `@Composable` functions like `Greeting(name: String)`. Gradle builds the app, `AndroidManifest.xml` declares components and permissions, and an `Activity` hosts your Compose content.

#### Trade-offs
- Android only; iOS needs a separate app (or Kotlin Multiplatform for shared logic).
- Gradle builds and the SDK surface area have a steep learning curve.

**Good enough to move on:** you created a Compose project, changed the greeting UI, and ran it on an emulator.

Key concepts: Creating a Compose project in Android Studio, Composable functions, Gradle and build variants, AndroidManifest.xml, Views and XML layouts (legacy), Kotlin Multiplatform.

Mini project: Build a single-screen Compose app that shows a random motivational quote and a button to fetch another from a hard-coded list.

Self-check: Why might a company keep a native Android app instead of moving to a cross-platform framework?

Resources:
- [Android courses](https://developer.android.com/courses) (Android Developers)
- [Jetpack Compose](https://developer.android.com/jetpack/compose) (Android Developers)

### Native iOS (Swift + SwiftUI)

alternative · beginner · about 4 h · https://www.internhack.in/roadmaps/tracks/mobile/native-ios

Build iPhone and iPad apps with Swift and SwiftUI, Apple's declarative UI framework, using Xcode on a Mac.

Native iOS development uses **Swift** and **SwiftUI**, with UIKit still present in many existing apps. It is the right path if you want to specialise in Apple platforms, need the most polished platform feel, or plan to use Apple-only features like widgets, App Intents or watchOS.

#### Strengths
- Best integration with Apple frameworks and the Human Interface Guidelines.
- SwiftUI code also targets iPadOS, macOS, watchOS and visionOS.
- Xcode Previews show UI changes without launching the app.

#### How a project looks
Create an "App" project in Xcode. The entry point is a type marked `@main` conforming to `App`, which shows a `ContentView`. Views are structs with a `body` property built from `VStack`, `Text`, `Button` and modifiers like `.padding()`. Swift Package Manager handles dependencies.

#### Trade-offs
- Requires a Mac, and publishing requires a paid Apple Developer Program membership.
- iOS only; Android needs a separate codebase.

**Good enough to move on:** you built the starter app, changed its view, and used a live preview.

Key concepts: Creating an app project in Xcode, The App and View protocols, Xcode Previews, Swift Package Manager, UIKit awareness, Apple Developer Program membership.

Mini project: Build a SwiftUI app with a list of five favourite books and a detail screen showing the author and a short note.

Self-check: What do you need, hardware and accounts included, to go from an Xcode project to an app on the App Store?

Resources:
- [SwiftUI tutorials](https://developer.apple.com/tutorials/swiftui) (Apple)
- [The Swift Programming Language](https://docs.swift.org/swift-book/) (Swift.org)

## Language Foundations

Get fluent in the language of your chosen stack, plus the asynchronous programming ideas every mobile app relies on.

### JavaScript Essentials

recommended · beginner · about 12 h · https://www.internhack.in/roadmaps/tracks/mobile/javascript-basics

The JavaScript you need for React Native: values, functions, objects, arrays, modules and modern syntax.

If you chose React Native, JavaScript is the ground you stand on. You do not need browser DOM knowledge, but you do need the language itself to feel natural.

#### What to learn
- **Values and types**: strings, numbers, booleans, `null`, `undefined`, objects and arrays. Understand equality (`===`) and truthiness.
- **Variables**: `const` by default, `let` when reassigning; avoid `var`.
- **Functions**: declarations, arrow functions, default parameters, closures.
- **Objects and arrays**: destructuring, spread (`...`), and array methods `map`, `filter`, `reduce`, `find`. React code uses these constantly to render lists and update state immutably.
- **Modules**: `import` and `export`, named vs default exports.
- **Error handling**: `try/catch`, throwing errors.

#### Pitfalls
- Mutating arrays or objects in place (`push`, direct assignment) causes React state bugs; create new copies instead.
- `this` behaves differently in arrow functions; modern React code rarely needs `this` at all.

**Good enough to move on:** you can take an array of product objects and produce a filtered, sorted list of names without mutating the original, and explain closures with an example.

Key concepts: Types, equality and truthiness, const, let and scope, Functions, arrow functions and closures, Destructuring and spread, Array methods: map, filter, reduce, ES modules, Immutability patterns, Classes and prototypes.

Mini project: Write a small Node script that loads a JSON list of expenses, groups them by category with reduce, and prints totals sorted from highest to lowest.

Self-check: Why does calling push() on an array held in React state often fail to update the UI?

Resources:
- [MDN JavaScript Guide](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide) (MDN)
- [The Modern JavaScript Tutorial](https://javascript.info/) (javascript.info)

### TypeScript for App Code

recommended · beginner · about 8 h · https://www.internhack.in/roadmaps/tracks/mobile/typescript

Add static types to your React Native code to catch bugs early and make props, state and API responses self-documenting.

TypeScript is JavaScript with a type checker. Expo templates use it by default, and most professional React Native codebases are written in it. Types catch typos, wrong props and unhandled `undefined` values before the app ever runs on a phone.

#### Core concepts
- **Annotations and inference**: `let count: number`, but let the compiler infer where it can.
- **Object shapes** with `type` or `interface`, optional fields (`name?: string`).
- **Union types** such as `"idle" | "loading" | "error"` model screen states cleanly.
- **Generics** like `Array<T>` and `Promise<T>` describe containers and async results.
- **Narrowing** with `if`, `typeof` and discriminated unions.

#### In a React Native app
- Type component props: `function Avatar({ uri, size }: { uri: string; size: number })`.
- Type API responses so the rest of the app knows what data looks like. Remember types vanish at runtime; validate untrusted network data (for example with Zod) if correctness matters.
- Type navigation params so a screen cannot be opened without required arguments.

#### Pitfalls
Sprinkling `any` silences the compiler and removes the benefit. Prefer `unknown` and narrow it.

**Good enough to move on:** you can type a component's props, a fetch result and a union of UI states without reaching for `any`.

Key concepts: Type annotations and inference, Types vs interfaces, Union and literal types, Generics, Narrowing and discriminated unions, Typing React components and props, Runtime validation with Zod.

Mini project: Convert your expenses script to TypeScript with strict mode on, modelling each expense and a union type for its category.

Self-check: If your API type says a field is always a string but the server sometimes sends null, why won't TypeScript save you, and what can?

Resources:
- [TypeScript Handbook](https://www.typescriptlang.org/docs/handbook/intro.html) (TypeScript)
- [Using TypeScript with React Native](https://reactnative.dev/docs/typescript) (React Native)

### Dart Essentials

optional · beginner · about 10 h · https://www.internhack.in/roadmaps/tracks/mobile/dart

The Dart language behind Flutter: sound null safety, classes, collections, and async with Futures and Streams.

If you chose Flutter, Dart is your daily language. It will feel familiar if you know Java, Kotlin, TypeScript or C#.

#### What to learn
- **Variables**: `var`, `final` (set once) and `const` (compile-time constant). Use `const` widgets where possible; Flutter can skip rebuilding them.
- **Sound null safety**: `String` can never be null, `String?` can. Use `?.`, `??` and `!` (sparingly).
- **Functions**: named parameters with `required`, optional positional parameters, arrow syntax.
- **Classes**: constructors, named constructors, `factory`, mixins and extension methods.
- **Collections**: `List`, `Map`, `Set`, collection `if` and `for` inside literals, spread `...`.
- **Records and patterns** (Dart 3) for returning multiple values and destructuring.

#### Async
`Future<T>` represents one later value and pairs with `async`/`await`. `Stream<T>` represents many values over time, used for things like auth state or database changes.

#### Pitfalls
Overusing the `!` operator turns null safety back into runtime crashes. Model optional data honestly.

**Good enough to move on:** you can write a class with a named constructor, parse a JSON map into it, and fetch data with `await`.

Key concepts: var, final and const, Sound null safety, Named and required parameters, Classes, constructors and mixins, Collections and collection if/for, Futures and async/await, Streams, Records and patterns.

Mini project: In DartPad, model a Todo class with fromJson/toJson, parse a JSON list of todos, and print only the incomplete ones.

Self-check: What is the difference between final and const in Dart, and why does it matter for Flutter widgets?

Resources:
- [Dart language tour](https://dart.dev/language) (Dart)
- [DartPad](https://dartpad.dev/) (Dart)

### Kotlin Essentials

optional · beginner · about 10 h · https://www.internhack.in/roadmaps/tracks/mobile/kotlin

The Kotlin language for Android: null safety, data classes, lambdas, collections and coroutines basics.

If you chose native Android, Kotlin is the official language. It is concise, null-safe and interoperable with Java libraries.

#### What to learn
- **val vs var**: prefer immutable `val`.
- **Null safety**: `String` vs `String?`, safe calls `?.`, the Elvis operator `?:`, and why `!!` is a smell.
- **Functions**: default and named arguments, single-expression functions, extension functions.
- **Classes**: `data class` for models, `sealed class`/`sealed interface` for UI states, `object` for singletons.
- **Lambdas and collections**: `map`, `filter`, `groupBy`, trailing lambda syntax (Compose relies on it heavily).
- **when** expressions for exhaustive branching over sealed types.

#### Coroutines preview
Coroutines let you write asynchronous code sequentially using `suspend` functions. On Android you launch them in a lifecycle-aware scope like `viewModelScope`. You will go deeper in the Android section.

#### Pitfalls
Java habits (getters/setters, nullable everything, mutable lists) make Kotlin code verbose and fragile. Lean on the idioms.

**Good enough to move on:** you can model a screen's state with a sealed interface and handle every case with `when`.

Key concepts: val, var and type inference, Null safety operators, Data classes and sealed types, Lambdas and trailing lambda syntax, Collection operations, Extension functions, Coroutines and suspend functions.

Mini project: Write a Kotlin console program that models a shopping cart with data classes and prints a receipt grouped by category.

Self-check: Why is a sealed interface a better way to represent Loading, Success and Error states than three nullable fields?

Resources:
- [Kotlin documentation](https://kotlinlang.org/docs/home.html) (JetBrains)
- [Kotlin coroutines guide](https://kotlinlang.org/docs/coroutines-overview.html) (JetBrains)

### Swift Essentials

optional · beginner · about 10 h · https://www.internhack.in/roadmaps/tracks/mobile/swift

The Swift language for iOS: optionals, structs vs classes, protocols, closures, enums and error handling.

If you chose native iOS, Swift is your language. It favours safety and value types, and SwiftUI is built entirely on its features.

#### What to learn
- **let vs var**, type inference.
- **Optionals**: `String?`, unwrapping with `if let`, `guard let` and `??`. Avoid force unwrapping with `!`.
- **Structs vs classes**: structs are copied (value semantics) and are the default in Swift; classes are shared references. SwiftUI views are structs.
- **Enums with associated values** model states like `.loading`, `.loaded([Item])`, `.failed(Error)`.
- **Protocols and extensions**: `Identifiable`, `Codable` and `Equatable` appear everywhere.
- **Closures** and trailing closure syntax.
- **Error handling** with `throws`, `try` and `do/catch`.

#### Concurrency preview
Swift has `async`/`await` and actors built in. `@MainActor` marks code that must run on the main thread, which is where UI updates happen.

#### Pitfalls
Retain cycles between classes and closures leak memory; use `[weak self]` where a closure outlives its owner.

**Good enough to move on:** you can decode JSON into a `Codable` struct and model a screen's state with an enum.

Key concepts: let, var and type inference, Optionals and unwrapping, Structs vs classes, Enums with associated values, Protocols, extensions and Codable, Closures, Error handling, Memory management and ARC.

Mini project: In a Swift playground, decode a JSON array of movies into Codable structs and print the titles of those rated above 8.

Self-check: Why are SwiftUI views structs rather than classes, and what does value semantics buy you?

Resources:
- [The Swift Programming Language](https://docs.swift.org/swift-book/) (Swift.org)
- [Swift.org documentation](https://www.swift.org/documentation/) (Swift.org)

### Async Code & the Main Thread

core · beginner · about 6 h · https://www.internhack.in/roadmaps/tracks/mobile/async-programming

Why mobile UIs run on a single main thread, and how promises, futures, coroutines and async/await keep apps responsive.

Every mobile platform draws its UI from one **main thread** (also called the UI thread). If you block it with a network call, a big JSON parse or a database query, the app freezes and the OS may show an "App Not Responding" dialog or kill it.

#### The shared idea
All modern stacks let you start slow work and continue when it finishes, without blocking:
- **JavaScript**: `Promise` and `async/await`. The JS thread in React Native is separate from the native UI thread, but blocking it still freezes your interactions.
- **Dart**: `Future`, `Stream`, and `Isolate` for CPU-heavy work.
- **Kotlin**: coroutines with dispatchers (`Dispatchers.IO` for I/O, `Main` for UI).
- **Swift**: `async/await`, `Task`, actors and `@MainActor`.

#### Patterns you will use constantly
- Show a loading state, await the work, then show data or an error.
- Cancel work when the user leaves a screen, so results do not update a view that no longer exists.
- Run independent requests in parallel (`Promise.all`, `Future.wait`, `async let`).

#### Pitfalls
- Forgetting to catch rejected promises leads to silent failures.
- Race conditions: a slow first search result arriving after a fast second one and overwriting it. Track the latest request or cancel old ones.

**Good enough to move on:** you can fetch two resources in parallel, handle errors, and explain why the UI stays responsive meanwhile.

Key concepts: The main (UI) thread, async/await, Error handling in async code, Parallel vs sequential requests, Cancellation, Race conditions in UI, Background threads, isolates and dispatchers.

Mini project: Build a search box that queries a public API as the user types, cancels or ignores stale requests, and shows loading and error states.

Self-check: A search screen sometimes shows results for an older query. What is happening and how do you fix it?

Resources:
- [MDN: Using promises](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Using_promises) (MDN)
- [Kotlin coroutines guide](https://kotlinlang.org/docs/coroutines-overview.html) (JetBrains)
- [Swift concurrency](https://docs.swift.org/swift-book/documentation/the-swift-programming-language/concurrency/) (Swift.org)

## Mobile UI/UX & Platform Design Languages

Design for thumbs, small screens and interruptions, and learn the visual languages users expect on Android and iOS.

### Designing for Touch and Small Screens

core · beginner · about 5 h · https://www.internhack.in/roadmaps/tracks/mobile/mobile-ux-principles

Core mobile UX ideas: touch targets, thumb zones, hierarchy, feedback, empty and error states, and designing for interruption.

Good mobile UX is mostly about respecting the context: one hand, a small screen, short sessions and frequent interruptions. You do not need to be a designer, but you should be able to spot and fix a bad screen.

#### Principles that matter most
- **Touch targets** should be at least about 44x44 points (iOS) or 48x48 dp (Android). Tiny icons cause mis-taps.
- **Thumb reach**: primary actions belong near the bottom of tall phones; destructive actions should be harder to hit by accident.
- **One primary action per screen**, with clear visual hierarchy through size, weight and colour.
- **Immediate feedback**: pressed states, spinners for waits over a few hundred milliseconds, and haptics for important confirmations.
- **Every state is a design**: loading, empty, error, offline and partial data all need a screen, not just the happy path.

#### Forms and input
Use the right keyboard type (email, number, phone), enable autofill, keep forms short, and validate inline instead of after submission.

#### Working with designers
Learn to read a Figma file: spacing values, typography scales, colour tokens and components. Ask for all states, not only the default one.

**Good enough to move on:** you can critique a screen for target size, hierarchy and missing states, and redesign it on paper.

Key concepts: Touch target sizes, Thumb zones and reachability, Visual hierarchy, Feedback and haptics, Loading, empty and error states, Mobile-friendly forms, Reading Figma designs, Onboarding patterns.

Mini project: Sketch or build a sign-up screen with all states: default, typing, validation error, submitting, network failure and success.

Self-check: Which screen states besides the happy path does a list of orders need, and what should each show?

Resources:
- [Human Interface Guidelines](https://developer.apple.com/design/human-interface-guidelines/) (Apple)
- [Material Design 3](https://m3.material.io/) (Google)
- [Android: Design for Android](https://developer.android.com/design) (Android Developers)

### Material Design 3 (Android)

core · beginner · about 4 h · https://www.internhack.in/roadmaps/tracks/mobile/material-design

Google's design system: dynamic color, typography, elevation, components and navigation patterns that Android users recognise.

Material Design 3 (also called Material You) is the design language of modern Android. Following it makes your app feel at home on Android and gives you a tested set of components.

#### Key ideas
- **Color roles** instead of raw colours: `primary`, `onPrimary`, `surface`, `surfaceVariant`, `error` and so on. Components consume roles, so switching to dark theme or dynamic color just works.
- **Dynamic color** derives a palette from the user's wallpaper on Android 12+.
- **Type scale**: display, headline, title, body, label, each in large/medium/small.
- **Shape and elevation** communicate hierarchy; M3 uses tonal elevation (tinted surfaces) more than shadows.
- **Components**: top app bars, navigation bar, navigation rail, FABs, cards, chips, dialogs, bottom sheets, snackbars.

#### Using it in code
Jetpack Compose has `MaterialTheme` and `androidx.compose.material3`. Flutter uses `ThemeData(useMaterial3: true)` with `ColorScheme.fromSeed`. In React Native, libraries such as React Native Paper implement M3.

#### Pitfalls
Hard-coding hex colours everywhere breaks dark mode. Define a theme once and reference roles.

**Good enough to move on:** you can build a themed screen that switches correctly between light and dark using colour roles.

Key concepts: Color roles and color schemes, Dynamic color, Type scale, Shape and tonal elevation, Core M3 components, Material theming in your framework.

Mini project: Create a settings screen themed from a single seed colour that looks correct in both light and dark mode.

Self-check: Why reference the onSurface role for body text instead of hard-coding black?

Resources:
- [Material Design 3](https://m3.material.io/) (Google)
- [Material Design 3 in Compose](https://developer.android.com/develop/ui/compose/designsystems/material3) (Android Developers)

### Human Interface Guidelines (iOS)

core · beginner · about 4 h · https://www.internhack.in/roadmaps/tracks/mobile/human-interface-guidelines

Apple's design principles and conventions for iOS: navigation bars, tab bars, SF Symbols, Dynamic Type and platform behaviours.

Apple's Human Interface Guidelines (HIG) describe how iOS apps should look and behave. iPhone users notice when an app ignores platform conventions, and App Review occasionally rejects apps that feel broken or non-native.

#### Conventions to know
- **Navigation**: a navigation bar with a back button and swipe-from-edge to go back; a **tab bar** at the bottom for top-level sections (usually 3 to 5 tabs).
- **Modality**: sheets for focused tasks, with a clear Cancel/Done.
- **SF Symbols**: Apple's icon set that scales with text and weight.
- **Dynamic Type**: users choose their text size; layouts must grow with it.
- **Safe areas**: respect the notch, Dynamic Island and home indicator.
- **System materials and vibrancy**, and support for light and dark appearance.

#### Android vs iOS differences
Android has a system back gesture and often uses a top app bar with actions; iOS relies on in-app back buttons and bottom tabs. Cross-platform apps should adapt small details per platform (back behaviour, switches, date pickers, alerts) rather than forcing one look everywhere.

**Good enough to move on:** you can list five UI details that should differ between the Android and iOS versions of the same app.

Key concepts: Navigation bars and tab bars, Sheets and modality, SF Symbols, Dynamic Type, Safe areas, Platform differences Android vs iOS.

Mini project: Take one screen of your app and document how it should differ on Android and iOS, then implement at least two of those differences.

Self-check: How should a cross-platform app handle going back on Android compared with iOS?

Resources:
- [Human Interface Guidelines](https://developer.apple.com/design/human-interface-guidelines/) (Apple)
- [SF Symbols](https://developer.apple.com/sf-symbols/) (Apple)

## Screens, Layouts & Responsive UI

Compose screens from components, lay them out with flexible layout systems, and make them adapt to any device, orientation and theme.

### Components, Props & Styling

core · beginner · about 6 h · https://www.internhack.in/roadmaps/tracks/mobile/components-and-styling

Break screens into reusable components, pass data down, and style them consistently with themes and design tokens.

All four stacks now share the same mental model: **UI is a function of state**. You describe what the screen should look like for the current data, and the framework updates the real views.

#### Components
- React Native: function components returning JSX. Flutter: `StatelessWidget`/`StatefulWidget`. Compose: `@Composable` functions. SwiftUI: `View` structs.
- Pass data **down** as props/parameters and events **up** as callbacks (`onPress`, `onTap`, `onClick`).
- Keep components small and focused; a `ProductCard` should not know how to fetch products.

#### Styling
- React Native uses JavaScript objects via `StyleSheet.create`, with camelCase properties like `backgroundColor` and unitless density-independent numbers.
- Flutter, Compose and SwiftUI style through widget properties or modifiers (`.padding()`, `Modifier.padding()`).
- Centralise **design tokens**: colours, spacing scale (4, 8, 12, 16...), font sizes and radii. Reference tokens instead of magic numbers.

#### Images and fonts
Load local assets and remote images with caching (Expo Image, `cached_network_image`, Coil, AsyncImage). Provide multiple resolutions for local images and load custom fonts before rendering text.

**Good enough to move on:** you built a reusable card component used in three places with different data, styled only with tokens.

Key concepts: Declarative UI: UI as a function of state, Props down, events up, Component composition, Styling APIs per framework, Design tokens and themes, Images and image caching, Custom fonts and icons.

Mini project: Build a recipe card component (image, title, cook time, tag chips) and render a grid of six different recipes from an array.

Self-check: Where should the data a card displays come from, and why should the card not fetch it itself?

Resources:
- [React Native: Core components](https://reactnative.dev/docs/intro-react-native-components) (React Native)
- [React Native: Style](https://reactnative.dev/docs/style) (React Native)
- [Flutter: Building user interfaces](https://docs.flutter.dev/ui) (Flutter)

### Layout Systems: Flexbox, Rows, Columns & Stacks

core · beginner · about 6 h · https://www.internhack.in/roadmaps/tracks/mobile/layout-systems

Position elements with the layout model of your stack: Flexbox in React Native, Row/Column in Flutter and Compose, stacks in SwiftUI.

Mobile layout systems are all variations of the same few ideas: place children in a row or column, decide how extra space is shared, and align them on the cross axis.

#### React Native: Flexbox
- Default `flexDirection` is `column` (unlike the web).
- `justifyContent` distributes along the main axis, `alignItems` along the cross axis.
- `flex: 1` makes a child fill the remaining space; `gap` adds spacing between children.
- Use `position: "absolute"` sparingly for overlays and badges.

#### Flutter and Compose
- `Row`, `Column` and `Stack` (Flutter) or `Row`, `Column`, `Box` (Compose).
- `Expanded`/`Flexible` (Flutter) or `Modifier.weight()` (Compose) share space.
- Flutter's rule: *constraints go down, sizes go up, parent sets position*. Most overflow errors come from unbounded constraints.

#### SwiftUI
`HStack`, `VStack`, `ZStack`, `Spacer` and `.frame()`. Views size themselves from content; modifiers wrap views, so modifier order changes the result.

#### Pitfalls
- Nesting scroll views in the same direction.
- Fixed widths and heights that break on small phones or large fonts.

**Good enough to move on:** you can recreate a profile header (avatar, name, stats row, follow button) from a screenshot without fixed pixel positions.

Key concepts: Main axis and cross axis, Flexbox in React Native, Row, Column and Stack widgets, HStack, VStack and ZStack, Sharing space: flex, Expanded, weight, Absolute positioning and overlays, Flutter constraints model.

Mini project: Clone the layout of a music player screen (album art, title, progress bar, controls row) that looks right on both a small and a large phone.

Self-check: What does flex: 1 do on a child inside a column, and what happens if its parent has no defined height?

Resources:
- [React Native: Layout with Flexbox](https://reactnative.dev/docs/flexbox) (React Native)
- [Flutter: Layouts](https://docs.flutter.dev/ui/layout) (Flutter)
- [Compose layout basics](https://developer.android.com/develop/ui/compose/layouts/basics) (Android Developers)

### Responsive & Adaptive Screens

core · intermediate · about 6 h · https://www.internhack.in/roadmaps/tracks/mobile/responsive-adaptive

Support different screen sizes, orientations, safe areas, tablets, foldables, font scaling and dark mode.

Your app will run on a 4.7-inch phone with huge system fonts, a 6.9-inch phone, a tablet in landscape and possibly a foldable. Responsive design here means more than media queries.

#### What to handle
- **Safe areas**: notches, the Dynamic Island, rounded corners and gesture bars. Use `SafeAreaView`/`react-native-safe-area-context`, Flutter's `SafeArea`, Compose window insets, or SwiftUI's built-in safe area handling.
- **Density-independent units**: dp/pt, not physical pixels.
- **Font scaling**: test at the largest accessibility text size. Text must wrap, not get clipped.
- **Orientation and window size**: read the window dimensions (`useWindowDimensions`, `MediaQuery`, `WindowSizeClass`, `horizontalSizeClass`) and switch layouts, for example a list on phones and list-detail side by side on tablets.
- **Keyboard**: avoid inputs hidden behind the keyboard (`KeyboardAvoidingView`, insets).
- **Dark mode**: follow the system appearance by default via your theme.

#### Adaptive vs responsive
Responsive stretches the same layout; adaptive swaps to a different layout at breakpoints. Tablets usually deserve adaptive layouts.

**Good enough to move on:** your main screens survive a small phone, a tablet, landscape, largest font size and dark mode without clipping.

Key concepts: Safe areas and insets, Density-independent units, Font scaling, Window size classes and breakpoints, Orientation changes, Keyboard avoidance, Dark mode, Foldables and multi-window.

Mini project: Build an email-style app that shows a list on phones and a two-pane list-detail layout on tablets, and handles dark mode and large text.

Self-check: Your login button disappears behind the keyboard on small Android phones. What are two ways to fix it?

Resources:
- [Expo: Safe areas](https://docs.expo.dev/develop/user-interface/safe-areas/) (Expo)
- [Flutter: Adaptive and responsive design](https://docs.flutter.dev/ui/adaptive-responsive) (Flutter)
- [Android: Adaptive apps](https://developer.android.com/adaptive-apps) (Android Developers)

### Lists, Scrolling & User Input

core · beginner · about 7 h · https://www.internhack.in/roadmaps/tracks/mobile/lists-and-forms

Render long lists efficiently with virtualization, and build forms with text input, validation and keyboard handling.

Most apps are lists and forms. Doing both well is a core skill.

#### Lists
Never render hundreds of items at once. Use **virtualized lists** that only render what is on screen:
- React Native: `FlatList`, `SectionList`, or FlashList for heavier lists.
- Flutter: `ListView.builder`. Compose: `LazyColumn`. SwiftUI: `List` or `LazyVStack`.

Give each item a **stable key/id** so the framework can reuse rows correctly. Add pull-to-refresh, pagination (load more when near the end), and clear empty states.

#### Forms
- Controlled inputs: the input value lives in state and updates on every change.
- Choose keyboard types, `autoComplete`/`textContentType` for autofill, and `secureTextEntry` for passwords.
- Move focus to the next field on "next", submit on "done".
- Validate inline, and disable submit while a request is in flight.
- Libraries like React Hook Form (with Zod) or Flutter's `Form` widget reduce boilerplate.

#### Pitfalls
- Using array index as a key causes wrong rows to update after deletes.
- Putting a virtualized list inside a scroll view in the same direction breaks virtualization.

**Good enough to move on:** you can build a paginated list of 1,000 items that scrolls smoothly, and a validated form with good keyboard behaviour.

Key concepts: Virtualized lists, Stable keys for list items, Pull to refresh and pagination, Controlled text inputs, Keyboard types and autofill, Form validation, Form libraries.

Mini project: Build a contacts app with a searchable, sectioned list of 500 generated contacts and an add-contact form with validation.

Self-check: Why is using the array index as a list item key a problem when items can be deleted?

Resources:
- [React Native: FlatList](https://reactnative.dev/docs/flatlist) (React Native)
- [React Native: TextInput](https://reactnative.dev/docs/textinput) (React Native)
- [Compose: Lists and grids](https://developer.android.com/develop/ui/compose/lists) (Android Developers)

## Navigation & State Management

Move users between screens with stacks, tabs and deep links, and organise the data that drives those screens.

### Navigation Patterns

core · beginner · about 6 h · https://www.internhack.in/roadmaps/tracks/mobile/navigation

Stack, tab and drawer navigation, modals, passing parameters, and handling the back button correctly.

Navigation is how users move through your app. Mobile navigation is a **stack** of screens: pushing a screen adds it on top, going back pops it off. Tabs and drawers hold several stacks side by side.

#### Patterns
- **Stack**: list to detail to edit. Supports the iOS swipe-back gesture and the Android back button.
- **Tabs**: a bottom bar for 3 to 5 top-level sections, each with its own stack and preserved scroll position.
- **Drawer**: a side menu for many secondary destinations; less common in modern apps.
- **Modals and bottom sheets**: focused tasks that slide over the current context.

#### Tools per stack
- React Native: **Expo Router** (file-based, built on React Navigation) or React Navigation directly.
- Flutter: `Navigator` 2.0 via **go_router**.
- Android: Navigation Compose. iOS: `NavigationStack` with typed paths.

#### Doing it well
- Pass **IDs** as parameters, not whole objects; the destination loads its own data.
- Type your routes and params.
- Separate auth and main flows so logged-out users cannot navigate into protected screens, and so pressing back after login does not return to the login screen.

**Good enough to move on:** you built an app with bottom tabs, a nested stack in one tab, a modal, and an auth gate.

Key concepts: Stack navigation, Tab navigation, Modals and bottom sheets, Passing route parameters, Auth flows and protected routes, Back button and gesture handling, Drawer navigation.

Mini project: Build a notes app shell: login screen, then tabs (Notes, Settings), a note detail screen pushed from the list, and a new-note modal.

Self-check: After a successful login, the user presses back and lands on the login screen again. What is wrong with your navigation structure?

Resources:
- [Expo Router introduction](https://docs.expo.dev/router/introduction/) (Expo)
- [React Navigation](https://reactnavigation.org/docs/getting-started) (React Navigation)
- [Navigation with Compose](https://developer.android.com/develop/ui/compose/navigation) (Android Developers)

### Deep Links, Universal Links & App Links

recommended · intermediate · about 4 h · https://www.internhack.in/roadmaps/tracks/mobile/deep-linking

Open specific screens from URLs, emails and notifications using custom schemes, Android App Links and iOS Universal Links.

A deep link opens your app directly on a specific screen, such as `myapp://orders/42` or `https://shop.example.com/orders/42`. Notifications, marketing emails, QR codes and password reset flows all depend on them.

#### Two kinds
- **Custom URL schemes** (`myapp://`): easy to set up, but any app can claim the same scheme and they do not work as normal web links.
- **Verified HTTPS links**: Android **App Links** and iOS **Universal Links**. You host a verification file on your domain (`assetlinks.json` for Android, `apple-app-site-association` for iOS) proving you own it. If the app is not installed, the link opens the website.

#### Handling links in the app
Map URL paths to routes. Expo Router does this automatically from your file structure; other stacks configure a linking table or route matcher. Handle both cold starts (app launched by the link) and warm starts (app already running).

#### Pitfalls
- Deep links bypass your normal flow, so the target screen must handle a logged-out user and missing data.
- Validate parameters; a link is untrusted input.
- Test links from outside the app (for example with `adb shell am start` or `xcrun simctl openurl`).

**Good enough to move on:** a link from a note opens the right screen whether the app was closed or already open.

Key concepts: Custom URL schemes, Android App Links, iOS Universal Links, Domain verification files, Cold vs warm start handling, Testing links from the command line, Deferred deep links.

Mini project: Add deep linking to your notes app so notes://note/ID and an https link open the right note, redirecting to login first if needed.

Self-check: Why are verified HTTPS links preferred over custom URL schemes for anything security-sensitive?

Resources:
- [Expo: Linking overview](https://docs.expo.dev/linking/overview/) (Expo)
- [Android App Links](https://developer.android.com/training/app-links) (Android Developers)
- [Supporting universal links](https://developer.apple.com/documentation/xcode/supporting-universal-links-in-your-app) (Apple)

### State Fundamentals

core · beginner · about 5 h · https://www.internhack.in/roadmaps/tracks/mobile/state-fundamentals

Local vs shared state, lifting state up, derived state, unidirectional data flow, and the difference between UI state and server data.

State is any data that can change and affects what is on screen. Most "state management" confusion disappears once you classify your state.

#### Kinds of state
- **Local UI state**: is this dropdown open, what is typed in this field. Keep it in the component (`useState`, `StatefulWidget`, `remember`, `@State`).
- **Shared app state**: current user, theme, cart contents. Lives above the screens that need it.
- **Server state**: data owned by a backend (products, messages). It is a *cache* that can go stale; treat it differently (see networking).
- **Persisted state**: survives app restarts (settings, drafts).
- **Navigation state**: which screen is showing, owned by the router.

#### Principles
- **Single source of truth**: each piece of data lives in exactly one place.
- **Lift state up** to the nearest common parent when two components need it.
- **Derive, don't duplicate**: compute totals and filtered lists from state rather than storing them separately.
- **Unidirectional flow**: state flows down, events flow up, and updates happen in one place.

#### Pitfalls
Putting everything in a global store too early creates tangled code. Start local, lift when needed.

**Good enough to move on:** for any screen you can say which state is local, shared, server or persisted, and where each lives.

Key concepts: Local component state, Lifting state up, Derived state, Unidirectional data flow, Server state vs client state, Immutability and state updates.

Mini project: Build a shopping cart across two tabs (catalogue and cart) where totals are derived, not stored, and item counts stay in sync.

Self-check: Why is storing both a list of items and a separate itemCount in state a bug waiting to happen?

Resources:
- [React: Managing state](https://react.dev/learn/managing-state) (React)
- [Flutter: State management](https://docs.flutter.dev/data-and-backend/state-mgmt) (Flutter)
- [Compose: State and Jetpack Compose](https://developer.android.com/develop/ui/compose/state) (Android Developers)

### App-wide State Tools

core · intermediate · about 8 h · https://www.internhack.in/roadmaps/tracks/mobile/state-libraries

Choose and use a shared-state tool for your stack: Zustand or Redux Toolkit, Riverpod or Bloc, ViewModel with StateFlow, or Observable.

Once several screens share data, you want a predictable place to keep it. Each stack has a few popular options; pick one and learn it well rather than sampling all of them.

#### By stack
- **React Native**: React Context for rarely changing values (theme, auth); **Zustand** for simple global stores; **Redux Toolkit** for large teams wanting strict patterns and devtools. Use **TanStack Query** for server data instead of putting API responses in a store.
- **Flutter**: **Riverpod** (recommended modern choice), Provider, or **Bloc/Cubit** for event-driven, very testable flows.
- **Android**: `ViewModel` exposing `StateFlow<UiState>`, collected in Compose with `collectAsStateWithLifecycle()`.
- **iOS**: `@Observable` classes (Observation framework) injected with `@Environment` or passed down.

#### What good looks like
- Screens read state and dispatch intentions (`addToCart(id)`), never mutate the store directly from the UI.
- Business logic lives in the store/ViewModel, which makes it unit-testable without UI.
- Subscriptions are granular so one change does not re-render the whole app.

#### Pitfalls
- Context holding fast-changing values re-renders every consumer.
- Duplicating server data in a global store and then fighting to keep it fresh.

**Good enough to move on:** your cart logic lives in one store/ViewModel with unit tests, and screens are thin.

Key concepts: React Context, Zustand, Redux Toolkit, Riverpod or Bloc, ViewModel and StateFlow, Observable and Environment, Keeping business logic out of views, Avoiding unnecessary re-renders.

Mini project: Refactor your cart app so all cart logic lives in a store or ViewModel, add persistence of the cart, and write three unit tests for it.

Self-check: Why should API responses usually live in a query cache rather than a global store like Redux or Zustand?

Resources:
- [Zustand](https://zustand.docs.pmnd.rs/) (pmndrs)
- [Redux Toolkit](https://redux-toolkit.js.org/) (Redux)
- [Riverpod](https://riverpod.dev/) (Riverpod)
- [Android: UI layer and state holders](https://developer.android.com/topic/architecture/ui-layer) (Android Developers)

## React Native in Depth

Go beyond the basics of our recommended stack: hooks and platform APIs, the Expo build workflow, the New Architecture and native modules.

### Hooks, Effects & Platform-specific Code

recommended · intermediate · about 8 h · https://www.internhack.in/roadmaps/tracks/mobile/rn-hooks-and-platform

Use React hooks correctly in React Native, write custom hooks, and branch behaviour per platform with Platform and file extensions.

Most React Native bugs in real codebases come from misused hooks rather than from native code. Master these and your app becomes far more predictable.

#### Hooks you use daily
- `useState` and `useReducer` for local state; `useReducer` when updates depend on several fields.
- `useEffect` for **synchronising with something outside React**: subscriptions, timers, event listeners. Always return a cleanup function.
- `useMemo` and `useCallback` to keep expensive values and callbacks stable, mainly for list items and memoised children. Do not wrap everything.
- `useRef` for mutable values that should not trigger renders, and for referencing native views (focus an input).
- **Custom hooks** (`useDebounce`, `useAppState`) package logic for reuse.

#### Platform differences
- `Platform.OS` and `Platform.select({ ios: ..., android: ... })` for small branches.
- File extensions `Button.ios.tsx` and `Button.android.tsx` for larger differences; the bundler picks the right one.
- `AppState` tells you when the app goes to the background; `BackHandler` intercepts the Android back button.

#### Pitfalls
- Missing dependencies in effect arrays cause stale values; the ESLint hooks plugin catches these.
- Fetching data in `useEffect` without cancellation leads to races; prefer a query library.

**Good enough to move on:** you can write a custom hook that pauses a timer when the app is backgrounded and cleans up properly.

Key concepts: useState and useReducer, useEffect and cleanup, useMemo, useCallback and memo, useRef and imperative handles, Custom hooks, Platform.select and platform files, AppState and BackHandler, ESLint rules of hooks.

Mini project: Build a focus timer app with a custom useCountdown hook that pauses in the background, resumes correctly, and uses platform-specific haptics.

Self-check: What happens if a useEffect subscribes to an event listener but never returns a cleanup function?

Resources:
- [React: Built-in hooks](https://react.dev/reference/react/hooks) (React)
- [React Native: Platform-specific code](https://reactnative.dev/docs/platform-specific-code) (React Native)
- [React: You might not need an effect](https://react.dev/learn/you-might-not-need-an-effect) (React)

### The Expo Workflow: Dev Builds, Config & Environments

recommended · intermediate · about 6 h · https://www.internhack.in/roadmaps/tracks/mobile/expo-workflow

Configure apps with app.config, use development builds and config plugins, manage environment variables, and understand prebuild.

Expo Go is great for learning, but real apps quickly need native libraries that Expo Go does not contain. The professional workflow is **development builds** plus **Continuous Native Generation**.

#### Key pieces
- **app.json / app.config.ts**: name, bundle identifier, icons, splash screen, permissions text, plugins. `app.config.ts` can read environment variables to produce dev, staging and production variants.
- **Development builds**: your own version of Expo Go with your native dependencies included. Build once with EAS or locally, then iterate on JavaScript with fast refresh.
- **Prebuild**: `npx expo prebuild` generates the `android/` and `ios/` folders from your config. Treat them as build output rather than hand-edited source when possible.
- **Config plugins** modify native projects during prebuild (for example adding a manifest entry), so native changes stay reproducible.
- **Environment variables**: `EXPO_PUBLIC_` variables are embedded in the bundle and therefore visible to anyone; never put secrets there.

#### Pitfalls
Hand-editing generated native folders and then running prebuild again wipes your changes. Encode native changes in config plugins instead.

**Good enough to move on:** you have a development build with a native library, and separate staging and production app variants that can be installed side by side.

Key concepts: app.json and app.config.ts, Development builds, Continuous Native Generation and prebuild, Config plugins, Environment variables and app variants, Local builds vs EAS Build.

Mini project: Configure your app with dev and production variants (different names, icons and API URLs), and install both on one phone.

Self-check: Why is an API secret placed in an EXPO_PUBLIC_ variable not actually secret?

Resources:
- [Expo: Development builds](https://docs.expo.dev/develop/development-builds/introduction/) (Expo)
- [Expo: Continuous Native Generation](https://docs.expo.dev/workflow/continuous-native-generation/) (Expo)
- [Expo: Config plugins](https://docs.expo.dev/config-plugins/introduction/) (Expo)

### React Native Internals & the New Architecture

optional · advanced · about 4 h · https://www.internhack.in/roadmaps/tracks/mobile/rn-architecture

How React Native actually runs: the Hermes engine, JSI, the Fabric renderer, TurboModules, and what they mean for performance.

You can build many apps without knowing the internals, but performance debugging and native integration get much easier once you do.

#### The moving parts
- **Hermes**: the JavaScript engine optimised for React Native. It precompiles JS to bytecode, which improves startup time and memory use.
- **JSI (JavaScript Interface)**: lets JavaScript hold direct references to C++ objects and call them synchronously, replacing the old asynchronous JSON "bridge".
- **Fabric**: the renderer. React computes a tree of changes, and Fabric applies it to native views, supporting concurrent React features.
- **TurboModules**: lazily loaded native modules accessed through JSI.
- **Codegen**: generates type-safe native glue from TypeScript specs.

#### Threads
Roughly, there is a **JS thread** running your React code, a **UI (main) thread** drawing native views, and background threads for layout (Yoga) and other work. A busy JS thread makes taps and JS-driven animations lag even though native scrolling still works.

#### Why it matters
- Libraries must support the New Architecture; check compatibility before adding one.
- Animations that run on the UI thread (Reanimated worklets) stay smooth when the JS thread is busy.

**Good enough to move on:** you can explain why a heavy loop in a button handler freezes JS animations but not native scrolling.

Key concepts: Hermes engine, JSI and the end of the bridge, Fabric renderer, TurboModules and Codegen, JS thread vs UI thread, Checking library compatibility.

Mini project: Build a demo screen with a button that blocks the JS thread for two seconds, and compare a JS-driven animation with a Reanimated one while it runs.

Self-check: What problem did JSI solve compared with the old asynchronous bridge?

Resources:
- [React Native architecture overview](https://reactnative.dev/architecture/overview) (React Native)
- [Using Hermes](https://reactnative.dev/docs/hermes) (React Native)

### Writing Native Modules with Expo Modules

optional · advanced · about 8 h · https://www.internhack.in/roadmaps/tracks/mobile/rn-native-modules

Call Kotlin and Swift code from JavaScript when no library exists, using the Expo Modules API.

Sooner or later you need a platform API that no library exposes well: a vendor SDK, a special sensor, a system setting. Instead of forking a stale package, you can write a small native module.

#### Expo Modules API
Create a module with `npx create-expo-module --local`. You write Kotlin for Android and Swift for iOS using a small declarative DSL:
- `Function("getBatteryHealth") { ... }` exposes a synchronous or async function.
- `Events("onChange")` sends events to JavaScript.
- `View(MyNativeView::class)` exposes a native UI component.

Then you import it in TypeScript like any other package. Because it is built on JSI and works with the New Architecture, you do not write bridge boilerplate.

#### Good practice
- Keep the native surface small; do data shaping in TypeScript.
- Type the JS API carefully and handle errors thrown from native code.
- Wrap vendor SDK setup in a config plugin so prebuild stays reproducible.

#### When not to
Check the Expo SDK and well-maintained community libraries first. Native modules add maintenance cost on every OS and React Native upgrade.

**Good enough to move on:** you shipped a local module that returns a value from Kotlin and Swift and emits at least one event.

Key concepts: create-expo-module, Exposing functions, Sending events to JavaScript, Native views, Basic Kotlin and Swift for modules, Wrapping third-party SDKs.

Mini project: Write a local Expo module that reports whether the device is in low-power mode and emits an event when it changes.

Self-check: What should you check before deciding to write your own native module?

Resources:
- [Expo Modules API overview](https://docs.expo.dev/modules/overview/) (Expo)
- [Expo Modules API: Get started](https://docs.expo.dev/modules/get-started/) (Expo)

## Flutter & Dart in Depth

For learners who picked Flutter: how the widget tree really works, structuring real apps, and calling platform code.

### Widget Tree, BuildContext & Lifecycle

alternative · intermediate · about 8 h · https://www.internhack.in/roadmaps/tracks/mobile/flutter-widgets

Stateless vs stateful widgets, the widget/element/render trees, BuildContext, keys, and the State lifecycle.

Flutter feels simple until something rebuilds too often or state jumps between list items. Understanding the three trees fixes both.

#### Three trees
- **Widgets** are cheap, immutable descriptions of UI. You create new ones on every build.
- **Elements** are the long-lived instances that hold position in the tree and link widgets to state.
- **RenderObjects** do layout and painting.

When you call `setState`, Flutter rebuilds widgets below that point, compares them with the existing elements, and only updates what changed.

#### Practical rules
- `StatelessWidget` for UI that depends only on its inputs; `StatefulWidget` when it owns changing state.
- `State` lifecycle: `initState` (set up controllers, subscriptions), `didUpdateWidget`, `dispose` (always dispose `TextEditingController`, `AnimationController`, stream subscriptions).
- `BuildContext` is your position in the tree; `Theme.of(context)` and `Navigator.of(context)` look upwards from there.
- Use `const` constructors to skip rebuilds, and split large `build` methods into smaller widgets.
- **Keys** (`ValueKey(item.id)`) keep state attached to the right item when lists reorder.

#### Pitfalls
Using a `BuildContext` after an `await` when the widget may be unmounted; check `mounted` first.

**Good enough to move on:** you can explain why a checkbox state moves to the wrong row after deleting an item, and fix it with keys.

Key concepts: Stateless vs Stateful widgets, Widget, Element and RenderObject trees, State lifecycle and dispose, BuildContext and InheritedWidget, Keys, const widgets and rebuild cost, The mounted check after await.

Mini project: Build a reorderable to-do list with per-item checkboxes that keeps state correctly when items are reordered or deleted.

Self-check: Why is it cheap for Flutter to recreate widgets on every build?

Resources:
- [Flutter architectural overview](https://docs.flutter.dev/resources/architectural-overview) (Flutter)
- [Flutter: Building user interfaces](https://docs.flutter.dev/ui) (Flutter)

### Structuring Real Flutter Apps

alternative · intermediate · about 10 h · https://www.internhack.in/roadmaps/tracks/mobile/flutter-app-structure

Organise a production Flutter app with Riverpod or Bloc, go_router, repositories, code generation and key pub.dev packages.

A demo app fits in `main.dart`; a real one needs layers so you can test logic and change data sources without touching UI.

#### A common layered structure
- **UI layer**: widgets and screens, reading state from providers or blocs.
- **State layer**: Riverpod `Notifier`/`AsyncNotifier` or Bloc/Cubit classes holding screen state and business rules.
- **Data layer**: repositories that hide where data comes from (HTTP, database, cache).
- Organise folders **by feature** (`features/auth`, `features/feed`) rather than by type once the app grows.

#### Useful packages
- **go_router** for declarative routing and deep links.
- **dio** or `http` for networking.
- **freezed** and **json_serializable** for immutable models and JSON parsing via code generation (`dart run build_runner build`).
- **drift** or **sqflite** for SQLite, **shared_preferences** for simple settings.

#### Pitfalls
- Business logic inside `build` methods cannot be unit tested.
- Mixing several state management approaches in one app confuses everyone. Pick one per project.

**Good enough to move on:** you have a two-feature app where a repository is injected into a notifier or bloc and replaced by a fake in tests.

Key concepts: Layered architecture, Feature-first folders, Riverpod providers and notifiers, Bloc and Cubit, go_router, freezed and json_serializable, Dependency injection for tests.

Mini project: Build a news reader with a feed and bookmarks feature, using go_router, a repository layer and Riverpod or Bloc, with one unit test per notifier.

Self-check: What does a repository layer let you do that calling HTTP directly from a widget does not?

Resources:
- [Flutter: Guide to app architecture](https://docs.flutter.dev/app-architecture) (Flutter)
- [Riverpod](https://riverpod.dev/) (Riverpod)
- [Bloc library](https://bloclibrary.dev/) (Bloc)

### Platform Channels & Native Integration in Flutter

optional · advanced · about 6 h · https://www.internhack.in/roadmaps/tracks/mobile/flutter-platform-channels

Call Kotlin and Swift from Dart with MethodChannel, EventChannel and Pigeon, and embed native views.

Flutter plugins on pub.dev cover most device features, but sometimes you need custom native code.

#### Channels
- **MethodChannel**: call a named method on the native side and get a result asynchronously (`await channel.invokeMethod("getBattery")`).
- **EventChannel**: receive a stream of events from native code, such as sensor updates.
- **Pigeon**: generates type-safe Dart, Kotlin and Swift code from a Dart interface definition. Prefer it over hand-written string-based channels.

#### Native views
`AndroidView` and `UiKitView` (platform views) embed native UI such as maps or ad views inside the widget tree. They cost some performance, so use them only when needed.

#### FFI
`dart:ffi` calls C libraries directly, useful for performance-critical or existing C/C++ code.

#### Good practice
- Wrap channels in a Dart class so the rest of the app never sees method names or raw maps.
- Handle `PlatformException` and missing implementations on each platform.
- If it could be reused, package it as a plugin.

**Good enough to move on:** you wrote a Pigeon-based API that returns device information from both Android and iOS.

Key concepts: MethodChannel, EventChannel, Pigeon code generation, Platform views, dart:ffi, Writing a plugin package.

Mini project: Create a Flutter plugin that streams the device's step counter from native code to Dart and displays it live.

Self-check: Why is Pigeon safer than a hand-written MethodChannel?

Resources:
- [Writing custom platform-specific code](https://docs.flutter.dev/platform-integration/platform-channels) (Flutter)
- [Pigeon package](https://pub.dev/packages/pigeon) (pub.dev)

## Android with Kotlin in Depth

For learners who picked native Android: components and lifecycle, Compose beyond basics, and Google's recommended app architecture.

### Android Components, Lifecycle & Gradle

alternative · intermediate · about 8 h · https://www.internhack.in/roadmaps/tracks/mobile/android-fundamentals

Activities, the lifecycle, configuration changes, intents, the manifest, resources and the Gradle build system.

Even in a Compose-only app, the Android system talks to you through components and lifecycle callbacks. Misunderstanding them causes the most classic Android bugs.

#### Components
- **Activity**: an entry point with a window; modern apps often use a single activity hosting Compose.
- **Service**, **BroadcastReceiver** and **ContentProvider**: background work, system events and shared data (you will use these less directly now, through Jetpack libraries).
- **Intents** start components and talk to other apps (share sheets, opening a URL).

#### Lifecycle
Activities move through `onCreate`, `onStart`, `onResume`, `onPause`, `onStop`, `onDestroy`. **Configuration changes** such as rotation or dark mode toggling recreate the activity by default, so state must live in a `ViewModel` or be saved with `rememberSaveable`. The system may also kill your process in the background (process death); test it with "Don't keep activities" in developer options.

#### Build system
Gradle with Kotlin DSL (`build.gradle.kts`), version catalogs (`libs.versions.toml`), build types (debug/release) and product flavors (free/paid, staging/prod). `minSdk`, `targetSdk` and `compileSdk` control compatibility.

**Good enough to move on:** your app keeps its state across rotation and process death, and has debug and release build types configured.

Key concepts: Activities and single-activity apps, Activity lifecycle, Configuration changes and process death, Intents, Manifest and resources, Gradle Kotlin DSL and version catalogs, Build types and product flavors, Services and broadcast receivers.

Mini project: Build a counter app that survives rotation, dark mode toggling and process death, with a share button that uses an intent.

Self-check: What is process death, and how do you test that your app recovers from it?

Resources:
- [The activity lifecycle](https://developer.android.com/guide/components/activities/activity-lifecycle) (Android Developers)
- [Configure your build](https://developer.android.com/build) (Android Developers)
- [Android courses](https://developer.android.com/courses) (Android Developers)

### Jetpack Compose in Depth

alternative · intermediate · about 10 h · https://www.internhack.in/roadmaps/tracks/mobile/compose-in-depth

Recomposition, state hoisting, remember and side effects, modifiers, theming and lazy layouts in Compose.

Compose redraws UI by **recomposing** composable functions when the state they read changes. Writing fast, correct Compose means working with that model, not against it.

#### State and recomposition
- `remember { mutableStateOf(...) }` keeps state across recompositions; `rememberSaveable` also survives configuration changes.
- **State hoisting**: make composables stateless by passing `value` and `onValueChange`, keeping state in the caller or a ViewModel. This makes them reusable and previewable.
- Composables should be **side-effect free**: they can run many times, in any order.

#### Side effects
- `LaunchedEffect(key)` runs a coroutine when the key changes.
- `DisposableEffect` sets up and tears down listeners.
- `rememberCoroutineScope` launches work from click handlers.

#### Modifiers and layout
Modifier order matters: `padding` then `background` differs from the reverse. Use `LazyColumn`/`LazyVerticalGrid` with `key` for lists.

#### Tooling
`@Preview` for fast iteration, Layout Inspector to count recompositions.

#### Pitfalls
Reading rapidly changing state (scroll position) high in the tree recomposes everything; read it as late as possible or use `derivedStateOf`.

**Good enough to move on:** you built a stateless, previewable form component whose state lives in a ViewModel.

Key concepts: Recomposition, remember and rememberSaveable, State hoisting, Side-effect APIs, Modifier ordering, Lazy lists and grids, Previews and Layout Inspector, derivedStateOf and stability.

Mini project: Build a habit tracker in Compose with a lazy list, a stateless habit row component, previews for each state, and a LaunchedEffect-driven reminder banner.

Self-check: Why should a composable never perform a network request directly in its body?

Resources:
- [Jetpack Compose](https://developer.android.com/jetpack/compose) (Android Developers)
- [State and Jetpack Compose](https://developer.android.com/develop/ui/compose/state) (Android Developers)
- [Side-effects in Compose](https://developer.android.com/develop/ui/compose/side-effects) (Android Developers)

### Modern Android Architecture: ViewModel, Flow, Hilt & Room

alternative · intermediate · about 12 h · https://www.internhack.in/roadmaps/tracks/mobile/android-architecture

Google's recommended app architecture with ViewModels, coroutines and Flow, dependency injection with Hilt, and Room for local data.

Google publishes a recommended architecture that most modern Android teams follow. Learning it makes any production codebase readable to you.

#### Layers
- **UI layer**: composables plus a `ViewModel` that exposes a single `StateFlow<UiState>` and accepts events.
- **Domain layer** (optional): use cases for reusable business logic.
- **Data layer**: repositories combining remote sources (Retrofit or Ktor) and local sources (**Room**), exposing `Flow`s.

#### Coroutines and Flow
- `viewModelScope.launch` for work tied to the screen; it cancels when the ViewModel is cleared.
- `Flow` for streams; `stateIn` turns a flow into state for the UI; collect in Compose with `collectAsStateWithLifecycle()`.
- Use `withContext(Dispatchers.IO)` for blocking I/O inside repositories.

#### Dependency injection
**Hilt** provides repositories and data sources to ViewModels (`@HiltViewModel`, `@Inject constructor`), and lets tests swap in fakes.

#### Room
Define `@Entity` classes, `@Dao` interfaces with queries returning `Flow`, and migrations when the schema changes.

#### Pitfalls
Exposing `MutableStateFlow` publicly lets the UI mutate state; expose read-only `StateFlow`.

**Good enough to move on:** a feature reads from Room, refreshes from the network, and the UI updates automatically through Flow.

Key concepts: UI, domain and data layers, ViewModel and UiState, Coroutines and viewModelScope, Flow and StateFlow, Hilt dependency injection, Room entities, DAOs and migrations, Retrofit or Ktor client, Multi-module projects.

Mini project: Build a GitHub repo browser that caches results in Room, refreshes from the API, and exposes a single UiState from a Hilt-injected ViewModel.

Self-check: Why should a ViewModel expose StateFlow rather than MutableStateFlow?

Resources:
- [Guide to app architecture](https://developer.android.com/topic/architecture) (Android Developers)
- [Save data with Room](https://developer.android.com/training/data-storage/room) (Android Developers)
- [Dependency injection with Hilt](https://developer.android.com/training/dependency-injection/hilt-android) (Android Developers)

## iOS with Swift in Depth

For learners who picked native iOS: the app lifecycle and Xcode project, SwiftUI data flow, and modern concurrency and persistence.

### iOS App Lifecycle, Xcode Projects & Capabilities

alternative · intermediate · about 7 h · https://www.internhack.in/roadmaps/tracks/mobile/ios-fundamentals

Scenes and app lifecycle, Info.plist, targets and schemes, capabilities and entitlements, and debugging in Xcode.

Before going deep on SwiftUI, get comfortable with how an iOS app is packaged and launched.

#### Lifecycle
In SwiftUI apps, the `App` struct declares `WindowGroup` scenes. Observe `@Environment(\.scenePhase)` to react when the app becomes `active`, `inactive` or `background`. iOS suspends backgrounded apps quickly and may terminate them without notice, so persist state early.

#### Project structure
- **Targets**: the app, extensions (widgets, notification service), and test targets.
- **Schemes and build configurations**: Debug vs Release, plus custom ones for staging.
- **Info.plist**: bundle metadata and **usage description strings** (for example `NSCameraUsageDescription`) required before asking for permissions. Missing strings crash the app.
- **Capabilities and entitlements**: push notifications, iCloud, Sign in with Apple, App Groups.
- **Asset catalogs** for app icons, colours and images.

#### Debugging
Breakpoints, the LLDB console (`po variable`), the view hierarchy debugger, and Instruments for performance.

#### UIKit awareness
Many SDKs and older apps still use UIKit. `UIViewRepresentable` and `UIViewControllerRepresentable` wrap UIKit components for SwiftUI.

**Good enough to move on:** you can add a capability, add a permission usage string, create a staging configuration, and debug with breakpoints.

Key concepts: App, Scene and scenePhase, Targets, schemes and configurations, Info.plist and usage descriptions, Capabilities and entitlements, Asset catalogs, Debugging with breakpoints and LLDB, Wrapping UIKit in SwiftUI.

Mini project: Build a journaling app that saves the current draft whenever the app goes to the background, with separate Debug and Staging configurations.

Self-check: What happens if your app requests camera access without an NSCameraUsageDescription entry?

Resources:
- [Xcode documentation](https://developer.apple.com/documentation/xcode) (Apple)
- [App and environment (SwiftUI)](https://developer.apple.com/documentation/swiftui/app-structure-and-behavior) (Apple)
- [SwiftUI tutorials](https://developer.apple.com/tutorials/swiftui) (Apple)

### SwiftUI Data Flow & Composition

alternative · intermediate · about 10 h · https://www.internhack.in/roadmaps/tracks/mobile/swiftui-in-depth

State, Binding, Observable models and the Environment; view identity; NavigationStack; and composing reusable views.

SwiftUI views are lightweight value types recreated often. Data flow tools tell SwiftUI what owns the truth and when to re-render.

#### Property wrappers and observation
- `@State`: private, view-owned value state.
- `@Binding`: a two-way reference to state owned by a parent, used for reusable inputs.
- `@Observable` classes (Observation framework): shared model objects; views update when the properties they read change. Own them with `@State` and pass them down or put them in the `@Environment`.
- `@Environment`: read system values (colour scheme, dismiss) or your injected models.

#### Identity and lists
`ForEach` and `List` need stable `Identifiable` IDs. Changing a view's identity (for example with `.id()` or conditional branches) resets its state.

#### Navigation
`NavigationStack` with `.navigationDestination(for:)` and a path array enables programmatic and deep-link navigation. Sheets use `.sheet(item:)`.

#### Composition tips
- Extract subviews early; small views are faster to diff and easier to preview.
- Create custom `ViewModifier`s and styles for consistent design.
- Use `.task` to start async work tied to a view's lifetime; it cancels automatically.

**Good enough to move on:** you can build a list-detail-edit flow where edits propagate through a shared Observable model.

Key concepts: @State and @Binding, @Observable models, Environment injection, View identity and Identifiable, NavigationStack and typed paths, The .task modifier, Custom ViewModifiers and styles, Previews with sample data.

Mini project: Build a recipe manager with list, detail and edit screens sharing one Observable store, plus programmatic navigation to a newly created recipe.

Self-check: When should a child view take a @Binding instead of its own @State?

Resources:
- [SwiftUI documentation](https://developer.apple.com/documentation/swiftui) (Apple)
- [Managing model data in your app](https://developer.apple.com/documentation/swiftui/managing-model-data-in-your-app) (Apple)
- [SwiftUI tutorials](https://developer.apple.com/tutorials/swiftui) (Apple)

### Swift Concurrency & Persistence (SwiftData, Core Data)

alternative · intermediate · about 10 h · https://www.internhack.in/roadmaps/tracks/mobile/ios-concurrency-data

Structured concurrency with async/await, tasks and actors, the MainActor, and persisting models with SwiftData or Core Data.

Modern iOS apps use Swift's built-in concurrency for networking and background work, and SwiftData (or Core Data in older code) for local persistence.

#### Swift concurrency
- `async` functions and `await` calls; `URLSession.shared.data(from:)` is async.
- **Structured concurrency**: `async let` and `TaskGroup` run child tasks that are cancelled together.
- `Task { }` starts work from synchronous code; check `Task.isCancelled` in long loops.
- **Actors** protect mutable state from data races. `@MainActor` guarantees code runs on the main thread; view models that drive UI are usually `@MainActor`.
- Swift 6 strict concurrency checking turns many data races into compile errors. Expect `Sendable` warnings and learn to fix them rather than silence them.

#### SwiftData
Mark classes with `@Model`, attach a `modelContainer` to your app, query with `@Query` in views, and insert/delete via `modelContext`. Plan schema migrations with versioned schemas.

#### Core Data
Still common in existing apps: `NSManagedObjectContext`, fetch requests and background contexts. Learn to read it even if you start with SwiftData.

#### Pitfalls
Updating UI state from a background task without `@MainActor` causes warnings or crashes.

**Good enough to move on:** your app loads data concurrently, caches it in SwiftData and shows cached content offline.

Key concepts: async/await and URLSession, async let and TaskGroup, Task cancellation, Actors and @MainActor, Sendable and strict concurrency, SwiftData models and queries, Core Data basics, Combine awareness.

Mini project: Build a podcast browser that fetches several feeds in parallel with a TaskGroup and persists episodes in SwiftData for offline viewing.

Self-check: What does marking a view model with @MainActor guarantee, and why is that useful?

Resources:
- [Swift concurrency](https://docs.swift.org/swift-book/documentation/the-swift-programming-language/concurrency/) (Swift.org)
- [SwiftData](https://developer.apple.com/documentation/swiftdata) (Apple)
- [Core Data](https://developer.apple.com/documentation/coredata) (Apple)

## Data: Networking, Storage & Offline-first

Talk to servers over HTTP and GraphQL, cache and persist data on the device, and keep the app useful without a connection.

### HTTP & REST APIs for App Developers

core · beginner · about 5 h · https://www.internhack.in/roadmaps/tracks/mobile/http

Requests, methods, status codes, headers, JSON and REST conventions, seen from the client side of a mobile app.

Nearly every app talks to a backend over HTTP. You do not need to build servers, but you must read API docs fluently and debug failed requests.

#### The essentials
- A request has a **method** (`GET` read, `POST` create, `PUT`/`PATCH` update, `DELETE` remove), a **URL**, **headers** and an optional **body**.
- Responses carry a **status code**: `2xx` success, `3xx` redirect, `4xx` client error (`401` not authenticated, `403` forbidden, `404` not found, `422` validation), `5xx` server error.
- **JSON** is the usual body format; set `Content-Type: application/json`.
- **Authorization** headers carry tokens: `Authorization: Bearer <token>`.

#### REST conventions
Resources as nouns (`/users/42/orders`), query parameters for filtering and pagination (`?page=2&limit=20` or cursor-based `?after=abc`).

#### Mobile specifics
- **HTTPS only**: iOS App Transport Security and Android's network security config block cleartext by default.
- Networks are slow and flaky: always set timeouts, handle "no connection", and retry idempotent requests with backoff.
- Test APIs with a tool like Bruno, Insomnia or curl before wiring them into the app.

**Good enough to move on:** you can read an API reference, reproduce a call with curl, and explain what a 401 vs 403 vs 500 means for your UI.

Key concepts: HTTP methods, Status codes, Headers and JSON bodies, REST resource design, Pagination styles, HTTPS and cleartext restrictions, API testing tools.

Mini project: Pick a public API (for example a weather or movies API), document three endpoints you need, and reproduce each with curl including one error case.

Self-check: Your app gets a 401 on a request that worked yesterday. What does that suggest, and what should the app do?

Resources:
- [MDN: HTTP](https://developer.mozilla.org/en-US/docs/Web/HTTP) (MDN)
- [MDN: HTTP response status codes](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status) (MDN)

### Networking Clients & Server-state Caching

core · intermediate · about 8 h · https://www.internhack.in/roadmaps/tracks/mobile/networking-clients

Make typed API calls with fetch, Dio, Retrofit or URLSession, and cache server data with tools like TanStack Query.

Calling an API is easy; handling loading, errors, retries, caching and refetching well across dozens of screens is the real work.

#### Clients by stack
- React Native: `fetch` or axios, wrapped in a small typed API module.
- Flutter: dio (interceptors, cancellation) or `http`.
- Android: Retrofit or Ktor with kotlinx.serialization.
- iOS: `URLSession` with `Codable`.

Centralise the base URL, auth header injection, timeouts and error mapping in one place (interceptors), so screens only call `api.getOrders()`.

#### Server-state caching
**TanStack Query** (React Native) treats API data as a cache keyed by query: `useQuery({ queryKey: ["orders"], queryFn: api.getOrders })`. It handles loading and error states, deduplicates requests, refetches when the app returns to the foreground, and supports pagination and optimistic updates via `useMutation`. Flutter's Riverpod `FutureProvider`, and repository patterns on native, fill the same role.

#### Pitfalls
- Parsing JSON without validation; the app crashes when the backend changes a field.
- Showing a spinner on every refetch instead of keeping stale data visible.
- Forgetting to refresh tokens, so users are logged out randomly.

**Good enough to move on:** your screens get data through a typed client and a query cache with loading, error, retry and pull-to-refresh.

Key concepts: Typed API client module, Interceptors for auth and errors, Timeouts, retries and cancellation, TanStack Query, Dio, Retrofit or URLSession, Optimistic updates, Refetch on focus and reconnect.

Mini project: Build a movie browser with search, infinite scroll and a favourite button that updates optimistically and rolls back on failure.

Self-check: Why is keeping stale data on screen while refetching usually better than showing a full-screen spinner?

Resources:
- [React Native: Networking](https://reactnative.dev/docs/network) (React Native)
- [TanStack Query](https://tanstack.com/query/latest) (TanStack)
- [Flutter: Fetch data from the internet](https://docs.flutter.dev/cookbook/networking/fetch-data) (Flutter)

### GraphQL Clients

optional · intermediate · about 5 h · https://www.internhack.in/roadmaps/tracks/mobile/graphql

Query exactly the data a screen needs with GraphQL, using clients such as Apollo, urql or graphql_flutter with normalised caching.

GraphQL lets the client ask for exactly the fields it needs in one request, which suits mobile screens that combine data from several resources.

#### Concepts
- A **schema** defines types and fields. **Queries** read, **mutations** write, **subscriptions** stream updates.
- **Fragments** let each component declare its data needs.
- Variables pass arguments: `query Order($id: ID!) { order(id: $id) { id total items { name } } }`.

#### Clients
- **Apollo Client** or **urql** for React Native, Apollo Kotlin for Android, Apollo iOS, and graphql_flutter or Ferry for Flutter.
- **Normalised caching** stores objects by `__typename` and `id`, so updating an order in one screen updates it everywhere.
- **Code generation** (GraphQL Code Generator, Apollo codegen) produces typed hooks and models from the schema.

#### Trade-offs
GraphQL shines with complex, nested data and many client types. For simple CRUD APIs, REST with a query cache is often simpler. Watch out for over-fetching through huge queries and for pagination patterns (connections, cursors).

**Good enough to move on:** you can write a query with variables and fragments, run it through a typed client, and see a mutation update the cache.

Key concepts: Schema, queries and mutations, Variables and fragments, Normalised cache, Code generation for types, Cursor pagination, Subscriptions.

Mini project: Build a country explorer app using a public GraphQL countries API, with a list screen, a detail screen, and typed generated queries.

Self-check: What does a normalised cache do when a mutation returns an updated object with an id already in the cache?

Resources:
- [Learn GraphQL](https://graphql.org/learn/) (GraphQL Foundation)
- [Apollo Client for React](https://www.apollographql.com/docs/react/) (Apollo)

### Local Storage: Key-value, SQLite & Files

core · intermediate · about 7 h · https://www.internhack.in/roadmaps/tracks/mobile/local-storage

Choose the right on-device storage for settings, structured data, files and secrets, and handle schema migrations.

Apps store data locally for speed, offline use and continuity. Picking the wrong store is a common source of bugs and security issues.

#### Options
- **Key-value stores** for small settings and flags: AsyncStorage or MMKV (React Native), shared_preferences (Flutter), DataStore (Android), `UserDefaults`/`@AppStorage` (iOS). Not for large or relational data.
- **SQLite** for structured, queryable data: expo-sqlite, Drizzle or WatermelonDB (React Native), drift or sqflite (Flutter), Room (Android), SwiftData/Core Data (iOS, built on SQLite).
- **File system** for images, downloads and exports: expo-file-system, path_provider, app-specific directories.
- **Secure storage** for tokens and secrets: Keychain on iOS and Keystore-backed storage on Android, via expo-secure-store or flutter_secure_storage. Never put tokens in plain key-value storage.

#### Migrations
When your schema changes in version 2, users still have version 1 data. Write versioned migrations and test upgrading from an old build.

#### Pitfalls
- Storing large JSON blobs in AsyncStorage and parsing them on startup slows launch.
- Assuming storage survives forever; the OS or user can clear it. The server should remain the source of truth for important data.

**Good enough to move on:** your app keeps settings in key-value storage, records in SQLite with one migration, and the auth token in secure storage.

Key concepts: Key-value storage, MMKV, SQLite and ORMs, Schema migrations, File system storage, Secure storage for secrets, Choosing the right store.

Mini project: Build an expense tracker storing entries in SQLite with a category filter, preferences in key-value storage, and add a migration that introduces a notes column.

Self-check: Where should an access token live on the device, and why not in AsyncStorage or SharedPreferences?

Resources:
- [Expo SQLite](https://docs.expo.dev/versions/latest/sdk/sqlite/) (Expo)
- [Expo SecureStore](https://docs.expo.dev/versions/latest/sdk/securestore/) (Expo)
- [Android: Data and file storage overview](https://developer.android.com/training/data-storage) (Android Developers)
- [SQLite documentation](https://www.sqlite.org/docs.html) (SQLite)

### Offline-first & Data Synchronisation

recommended · advanced · about 10 h · https://www.internhack.in/roadmaps/tracks/mobile/offline-first

Design apps that work without a network: local-first reads, queued writes, sync strategies and conflict resolution.

Mobile users go through tunnels, lifts and bad coverage. An offline-first app reads from local storage first and syncs with the server when it can, so it always feels fast.

#### Core pattern
1. The UI reads from the **local database**, never directly from the network.
2. A sync layer fetches changes from the server and writes them locally; the UI updates reactively.
3. User writes go to the local DB immediately and into an **outbox queue**, which is sent when online.

#### Decisions you must make
- **What must work offline?** Often reading recent data and drafting; not everything needs it.
- **Sync strategy**: pull with timestamps or cursors ("changes since X"), push the outbox, and handle partial failures idempotently (client-generated IDs help).
- **Conflicts**: last-write-wins is simple but can lose data; field-level merges or asking the user suit collaborative data. CRDT-based tools solve harder cases.
- **Connectivity awareness**: NetInfo, connectivity_plus or `NWPathMonitor`, but do not trust it fully; the real signal is whether requests succeed.

#### Tools
WatermelonDB, PowerSync, and Firestore's offline persistence for React Native; drift plus a custom sync in Flutter; Room with WorkManager on Android; SwiftData with background tasks on iOS.

**Good enough to move on:** your app lets users create items offline, shows them immediately, and syncs them without duplicates when back online.

Key concepts: Local-first reads, Outbox queue for writes, Pull sync with cursors, Idempotency and client IDs, Conflict resolution strategies, Connectivity detection, Sync engines and CRDTs.

Mini project: Make your expense tracker offline-first: entries added in airplane mode appear instantly, sync when online, and never duplicate on retries.

Self-check: Why do client-generated IDs make retrying a queued create request safe?

Resources:
- [Android: Build an offline-first app](https://developer.android.com/topic/architecture/data-layer/offline-first) (Android Developers)
- [Firestore: Access data offline](https://firebase.google.com/docs/firestore/manage-data/enable-offline) (Firebase)

## Backend Services, Auth & Notifications

Use backend-as-a-service platforms, sign users in safely, and reach them with push notifications.

### Backend-as-a-Service: Firebase & Supabase

recommended · intermediate · about 8 h · https://www.internhack.in/roadmaps/tracks/mobile/baas

Ship features fast with managed databases, auth, storage and functions from Firebase or Supabase, and secure them with rules.

Backend-as-a-Service (BaaS) platforms give mobile developers a database, authentication, file storage and serverless functions without running servers. They are ideal for prototypes, hackathons and many production apps.

#### Firebase
- **Firestore**: a NoSQL document database with realtime listeners and offline persistence.
- **Authentication**, **Cloud Storage**, **Cloud Functions**, **Remote Config**, plus Crashlytics and Analytics.
- Use React Native Firebase, FlutterFire, or the native SDKs.

#### Supabase
- **Postgres** with an auto-generated API, realtime subscriptions, auth, storage and Edge Functions.
- Relational data and SQL skills carry over; it is open source and self-hostable.

#### Security is on you
With BaaS, the client talks directly to the database, so **security rules** (Firestore rules) or **Row Level Security** policies (Supabase) are your only protection. An API key in the app is not a secret; rules decide what each user can read and write. Test rules with the emulator or policy tests.

#### Trade-offs
Vendor lock-in, pricing that scales with reads, and data modelling constraints (Firestore) are real. Keep a thin data layer so you could migrate later.

**Good enough to move on:** your app stores per-user data in Firebase or Supabase, and a second test user cannot read the first user's data.

Key concepts: Firestore documents and collections, Supabase Postgres and client, Realtime listeners, File storage, Security rules and Row Level Security, Cloud Functions or Edge Functions, Local emulators.

Mini project: Build a shared grocery list app with realtime updates between two phones, backed by Firestore or Supabase with rules restricting access to list members.

Self-check: If your Firebase config and API key are visible inside the app bundle, what actually protects your data?

Resources:
- [Firebase documentation](https://firebase.google.com/docs) (Firebase)
- [Supabase documentation](https://supabase.com/docs) (Supabase)
- [Firestore security rules](https://firebase.google.com/docs/firestore/security/get-started) (Firebase)

### Authentication & Session Handling

core · intermediate · about 8 h · https://www.internhack.in/roadmaps/tracks/mobile/authentication

Email, social and passwordless sign-in, OAuth with PKCE, token storage and refresh, and gating the app on auth state.

Authentication on mobile is harder than on the web because the app is a public client: anything shipped inside it can be extracted. Get the fundamentals right.

#### Sign-in methods
- **Email and password** or **passwordless** (magic links, one-time codes).
- **Social login**: Sign in with Apple (required on iOS if you offer other social logins), Google Sign-In.
- **Passkeys**: phishing-resistant, increasingly supported on both platforms.

#### OAuth 2.0 and OpenID Connect
Use the **Authorization Code flow with PKCE**, opening the provider in the system browser (expo-auth-session, AppAuth). Never embed a client secret in the app, and avoid collecting third-party passwords in your own WebView.

#### Tokens and sessions
- A short-lived **access token** authorises API calls; a **refresh token** gets new access tokens.
- Store tokens in **secure storage** (Keychain/Keystore), not plain storage.
- Refresh proactively or on `401`, making sure concurrent requests share one refresh.
- On logout: clear tokens, caches and any user data on the device.

#### App structure
Hold auth state in one place, show a splash while restoring the session on launch, and route users to the auth or main stack accordingly.

**Good enough to move on:** your app supports one social login and email sign-in, survives restarts without re-login, and refreshes tokens transparently.

Key concepts: Email, password and passwordless, Sign in with Apple and Google, OAuth 2.0 with PKCE, Access and refresh tokens, Secure token storage, Session restore on launch, Passkeys, Multi-factor authentication.

Mini project: Add auth to your grocery app: Google or Apple sign-in, persisted session in secure storage, automatic token refresh, and a clean logout.

Self-check: Why must a mobile app use PKCE instead of a client secret for OAuth?

Resources:
- [Expo: Authentication](https://docs.expo.dev/develop/authentication/) (Expo)
- [OAuth 2.0: PKCE](https://oauth.net/2/pkce/) (oauth.net)
- [Firebase Authentication](https://firebase.google.com/docs/auth) (Firebase)

### Push & Local Notifications

core · intermediate · about 7 h · https://www.internhack.in/roadmaps/tracks/mobile/push-notifications

Send and receive push notifications through FCM and APNs, schedule local notifications, and handle taps that deep link into the app.

Notifications bring users back, but they are also the fastest way to get your app muted or uninstalled. Build them well and use them sparingly.

#### How push works
1. The app asks the user for permission (always on iOS; on Android 13+ too).
2. The OS gives the app a **device token** from **APNs** (Apple) or **FCM** (Google).
3. Your app sends the token to your backend, tied to the user.
4. Your backend sends a message to APNs/FCM (or through Expo's push service or Firebase), which delivers it to the device.

#### What to handle
- **Foreground vs background**: decide whether to show a banner while the app is open.
- **Tap handling**: include a route or deep link in the payload and navigate when the user taps, including from a cold start.
- **Android channels**: group notifications by type so users can mute some but not others.
- **Local notifications** scheduled on-device for reminders, no server needed.
- **Token refresh**: tokens change; update your backend when they do and remove invalid ones.

#### Good practice
Ask for permission in context ("Get notified when your order ships?") rather than on first launch. Respect quiet hours and provide in-app settings.

**Good enough to move on:** tapping a push notification from a killed app opens the correct screen.

Key concepts: APNs and FCM, Device tokens and registration, Permission prompts in context, Foreground and background handling, Notification taps and deep links, Android notification channels, Local scheduled notifications, Rich notifications and actions.

Mini project: Add push notifications to your grocery app so adding an item notifies other list members, and tapping the notification opens that list.

Self-check: Walk through every system involved between your backend deciding to notify a user and the banner appearing on their iPhone.

Resources:
- [Expo: Push notifications overview](https://docs.expo.dev/push-notifications/overview/) (Expo)
- [Firebase Cloud Messaging](https://firebase.google.com/docs/cloud-messaging) (Firebase)
- [Apple User Notifications](https://developer.apple.com/documentation/usernotifications) (Apple)

## Device Capabilities & Background Work

Request permissions responsibly and use the hardware that makes mobile special: camera, location, sensors and biometrics, plus work that runs in the background.

### Runtime Permissions & Privacy

core · intermediate · about 4 h · https://www.internhack.in/roadmaps/tracks/mobile/permissions

How Android and iOS permission models work, when and how to ask, handling denial, and privacy disclosures in the stores.

Sensitive capabilities such as camera, location, contacts, microphone and notifications require user permission at runtime. How you ask determines whether users say yes.

#### Platform models
- **iOS**: you get one system prompt per permission. If denied, you can only send users to Settings. Each permission needs a usage description string explaining why.
- **Android**: dangerous permissions are declared in the manifest and requested at runtime. After repeated denials the system stops showing the dialog. Some permissions, like background location, need a separate step.
- Both offer granular choices: approximate vs precise location, limited photo library access, "allow once".

#### Asking well
1. Ask **in context**, right when the user triggers the feature.
2. Optionally show a short **pre-prompt** screen explaining the benefit before the system dialog.
3. Handle every result: granted, denied, limited, and permanently denied (offer a button to open Settings).
4. Re-check status when the app returns to the foreground; users change settings.

#### Privacy compliance
App Store privacy labels and Google Play's Data safety form must match what your app and SDKs collect. Request only what you need; unjustified permissions cause rejections.

**Good enough to move on:** a feature in your app handles granted, denied and permanently denied states gracefully.

Key concepts: iOS permission model and usage strings, Android runtime permissions, Asking in context and pre-prompts, Handling denial and Settings deep link, Granular and one-time permissions, Privacy labels and Data safety form.

Mini project: Build a permission playground screen that requests camera, location and notifications in context and shows a correct UI for each possible status.

Self-check: A user permanently denied camera access. What can your app do, and what can it not do?

Resources:
- [Expo: Permissions](https://docs.expo.dev/guides/permissions/) (Expo)
- [Android: Request runtime permissions](https://developer.android.com/training/permissions/requesting) (Android Developers)
- [HIG: Privacy](https://developer.apple.com/design/human-interface-guidelines/privacy) (Apple)

### Camera, Photos & Media

core · intermediate · about 6 h · https://www.internhack.in/roadmaps/tracks/mobile/camera-media

Capture photos and video, pick from the library, scan barcodes, and process and upload media efficiently.

Camera and media features appear in a huge range of apps: profile pictures, receipts, document scanning, QR codes and social posts.

#### Building blocks
- **Image picker**: let users choose from their library or take a quick photo with the system UI (expo-image-picker, image_picker, Photo Picker on Android, `PhotosPicker` on iOS). The modern system pickers often need no library permission at all.
- **Custom camera** for in-app capture with overlays: expo-camera or react-native-vision-camera, the camera package in Flutter, CameraX on Android, AVFoundation on iOS.
- **Barcode and QR scanning** is built into most camera libraries.
- **Audio and video playback** with expo-video/expo-audio, video_player, Media3/ExoPlayer or AVPlayer.

#### Processing and upload
- Phone photos are large; **resize and compress** before upload (expo-image-manipulator, platform APIs).
- Strip or respect EXIF data (location metadata is a privacy issue).
- Upload with progress, in the background if large, and retry on failure. Pre-signed URLs to object storage avoid routing files through your API.

#### Pitfalls
Loading many full-resolution images into memory crashes low-end phones. Use thumbnails and an image library with caching.

**Good enough to move on:** users can pick or take a photo, crop and compress it, and upload it with a progress indicator.

Key concepts: System image picker, Custom in-app camera, Barcode and QR scanning, Resizing and compressing images, EXIF metadata and privacy, Uploads with progress, Audio and video playback.

Mini project: Build a receipt scanner that captures a photo, compresses it, uploads it to your BaaS storage and shows a gallery of past receipts.

Self-check: Why should you compress a photo on the device before uploading it?

Resources:
- [Expo ImagePicker](https://docs.expo.dev/versions/latest/sdk/imagepicker/) (Expo)
- [Expo Camera](https://docs.expo.dev/versions/latest/sdk/camera/) (Expo)
- [CameraX overview](https://developer.android.com/media/camera/camerax) (Android Developers)

### Location & Maps

recommended · intermediate · about 6 h · https://www.internhack.in/roadmaps/tracks/mobile/location-maps

Get the device's location with the right accuracy, show maps with markers and routes, and use geofencing responsibly.

Location powers delivery, ride sharing, fitness, weather and local search apps, but it is also one of the most battery-hungry and privacy-sensitive features.

#### Getting location
- One-off position for "near me" features vs continuous updates for tracking.
- Choose **accuracy** deliberately: approximate is enough for weather; navigation needs precise.
- Foreground location is much easier to get approved than **background location**, which requires strong justification in both stores.
- Libraries: expo-location, geolocator (Flutter), the Fused Location Provider (Android), Core Location (iOS).

#### Maps
- react-native-maps or Expo Maps, google_maps_flutter, Maps Compose, and MapKit for SwiftUI.
- Markers, clustering for many points, polylines for routes, and camera movement.
- Map SDKs usually need API keys restricted to your app's package name or bundle ID.

#### Geofencing and geocoding
Geofences trigger when a user enters or leaves an area, with OS limits on how many you can register. Geocoding converts addresses to coordinates and back.

#### Pitfalls
- GPS takes time and can be wrong indoors; show a last-known position and accuracy radius.
- Continuous high-accuracy updates drain batteries quickly; stop updates when not needed.

**Good enough to move on:** your app shows the user on a map with nearby points of interest, and stops tracking when the screen is left.

Key concepts: Foreground location, Accuracy and battery trade-offs, Background location, Map views and markers, Marker clustering, Geocoding, Geofencing.

Mini project: Build a nearby-cafes app that centres the map on the user, shows clustered markers from a public dataset, and opens directions in the system maps app.

Self-check: What accuracy setting and update strategy would you choose for a weather app versus a running tracker?

Resources:
- [Expo Location](https://docs.expo.dev/versions/latest/sdk/location/) (Expo)
- [Android: Location](https://developer.android.com/develop/sensors-and-location/location) (Android Developers)
- [Core Location](https://developer.apple.com/documentation/corelocation) (Apple)

### Sensors, Haptics & Biometrics

recommended · intermediate · about 5 h · https://www.internhack.in/roadmaps/tracks/mobile/sensors-biometrics

Use the accelerometer, gyroscope and other sensors, give tactile feedback with haptics, and unlock features with Face ID or fingerprint.

Phones are packed with hardware that web apps rarely touch. A few well-chosen uses make an app feel truly mobile.

#### Sensors
- **Accelerometer** and **gyroscope** for shake gestures, tilt effects and motion games.
- **Magnetometer** for compass headings, **barometer** for altitude, **pedometer** for step counts.
- Libraries: expo-sensors, sensors_plus, Android `SensorManager`, iOS Core Motion.
- Subscribe only while needed and choose a sensible update interval; high-frequency sensor streams cost battery and CPU.

#### Haptics
Short vibrations confirm actions (success, warning, selection change). Use expo-haptics, `HapticFeedback` in Flutter, or the platform APIs. Keep them subtle and meaningful.

#### Biometrics
Face ID, Touch ID and Android BiometricPrompt let users confirm identity locally (expo-local-authentication, local_auth).
- Biometrics **unlock** something already on the device (a stored token or key); they do not authenticate the user to your server by themselves.
- For stronger security, tie a Keychain/Keystore item to biometric access so the secret cannot be read without a successful scan.
- Always provide a fallback (device passcode or password). iOS needs `NSFaceIDUsageDescription`.

**Good enough to move on:** your app can lock sensitive screens behind biometrics with a fallback, and uses haptics for key confirmations.

Key concepts: Accelerometer and gyroscope, Pedometer and other sensors, Sensor update intervals and battery, Haptic feedback, Face ID, Touch ID and BiometricPrompt, Biometric-protected secure storage, Fallback authentication.

Mini project: Build a private notes app that requires biometrics to open, supports a passcode fallback, and clears the screen when you shake the phone.

Self-check: Why does a successful Face ID check alone not prove to your server who the user is?

Resources:
- [Expo LocalAuthentication](https://docs.expo.dev/versions/latest/sdk/local-authentication/) (Expo)
- [Expo Sensors](https://docs.expo.dev/versions/latest/sdk/sensors/) (Expo)
- [Android: Show a biometric dialog](https://developer.android.com/identity/sign-in/biometric-auth) (Android Developers)

### Background Tasks & App States

recommended · advanced · about 6 h · https://www.internhack.in/roadmaps/tracks/mobile/background-work

What apps can and cannot do in the background on Android and iOS, and how to schedule sync, uploads and periodic work reliably.

Desktop programs can run whenever they like; mobile apps cannot. Both OSes aggressively limit background execution to save battery, and the rules differ.

#### The rules in brief
- **iOS**: apps are suspended shortly after leaving the foreground. Allowed exceptions include background fetch/refresh (`BGAppRefreshTask`), processing tasks (`BGProcessingTask`, often while charging), background URL sessions for uploads/downloads, audio, location and VoIP. The system decides when scheduled tasks actually run.
- **Android**: Doze and app standby restrict background work. Use **WorkManager** for deferrable, guaranteed work with constraints (network, charging), and **foreground services** with a visible notification for user-visible ongoing tasks like navigation or music.

#### Cross-platform tools
expo-background-task and expo-task-manager in React Native; workmanager in Flutter.

#### Designing for it
- Assume background work may be delayed, batched or skipped; make it idempotent and resumable.
- Prefer server-driven approaches (silent push to trigger a sync, server-side processing) over polling.
- Sync when the app returns to the foreground as a reliable fallback.

#### Pitfalls
Expecting a timer to fire every 15 minutes exactly on iOS. It will not.

**Good enough to move on:** your offline outbox syncs through a scheduled background task and also on app foreground.

Key concepts: iOS background modes, BGTaskScheduler, Android Doze and app standby, WorkManager, Foreground services, Background uploads and downloads, Silent push to trigger sync.

Mini project: Add a background sync task to your offline-first expense tracker and log each run with a timestamp to observe how often each OS actually runs it.

Self-check: Why can't you rely on a background task running at an exact interval on iOS, and what do you do instead?

Resources:
- [Android: Background work with WorkManager](https://developer.android.com/topic/libraries/architecture/workmanager) (Android Developers)
- [Apple Background Tasks](https://developer.apple.com/documentation/backgroundtasks) (Apple)
- [Expo BackgroundTask](https://docs.expo.dev/versions/latest/sdk/background-task/) (Expo)

## Animations, Gestures & Performance

Make the app feel alive with smooth animations and natural gestures, then measure and fix jank, slow startup and bloated binaries.

### Animations & Transitions

core · intermediate · about 7 h · https://www.internhack.in/roadmaps/tracks/mobile/animations

Use declarative, native-thread animations to give feedback, show relationships between screens and guide attention without hurting frame rate.

Motion on mobile is functional: it confirms a tap, shows where a sheet came from, and hides loading. The rule of thumb is **short, purposeful and interruptible** (roughly 150 to 350 ms for most UI changes).

#### The frame budget
Screens refresh 60 to 120 times a second, so each frame has about 16 ms (or 8 ms at 120 Hz). Animations that run on the JavaScript or main thread stutter whenever that thread is busy. Prefer engines that run animation work on the UI or render thread.

#### Tools by stack
- **React Native:** **Reanimated** runs animations as worklets on the UI thread: `const x = useSharedValue(0); x.value = withSpring(100);` then read it in `useAnimatedStyle`. Layout animations (`entering`, `exiting`) animate mounts and unmounts. The built-in `Animated` API works with `useNativeDriver: true` for transform and opacity.
- **Flutter:** implicit widgets (`AnimatedContainer`, `AnimatedOpacity`) for simple cases, `AnimationController` plus `Tween` for explicit control, and `Hero` for shared elements.
- **Compose:** `animate*AsState`, `AnimatedVisibility`, `updateTransition` and `SharedTransitionLayout`.
- **SwiftUI:** `withAnimation { }`, `.animation(_:value:)`, `matchedGeometryEffect` and `PhaseAnimator`.

#### What to animate
Animate **transform and opacity**, which are cheap. Animating width, height or layout triggers re-layout every frame. Use springs for natural motion, and respect the system **Reduce Motion** setting by shortening or removing non-essential animation.

#### Vector animations
**Lottie** plays After Effects exports on every platform, handy for onboarding and empty states. Keep files small and avoid them in long lists.

**Good enough to move on:** you can animate a card expanding into a detail view at a steady frame rate and turn it off when Reduce Motion is on.

Key concepts: Frame budget and UI thread, Reanimated shared values, Implicit vs explicit animations, Layout and enter/exit animations, Shared element transitions, Spring physics and easing, Reduce Motion support, Lottie vector animations.

Mini project: Build a product grid where tapping a card smoothly expands it into a detail screen, list items animate in on mount, and all motion is reduced when the system setting is on.

Self-check: Why does animating translateX usually stay smooth while animating width can drop frames, and what thread should an animation ideally run on?

Resources:
- [React Native Reanimated](https://docs.swmansion.com/react-native-reanimated/) (Software Mansion)
- [Flutter: Introduction to animations](https://docs.flutter.dev/ui/animations) (Flutter)
- [Compose: Animations](https://developer.android.com/develop/ui/compose/animation/introduction) (Android Developers)

### Gestures & Touch Interaction

core · intermediate · about 5 h · https://www.internhack.in/roadmaps/tracks/mobile/gestures

Handle taps, swipes, drags, pinches and long presses with gesture systems that feel native and cooperate with scrolling.

Touch is the primary input on mobile, and users expect gestures to behave exactly like the system apps: swipe back, pull to refresh, swipe a row to delete, pinch to zoom.

#### Gesture building blocks
- **Tap, double tap, long press:** discrete gestures that fire once.
- **Pan (drag), pinch, rotate:** continuous gestures that report position, velocity and scale over time.
- **Fling:** a pan that ends with velocity; use that velocity to continue motion with a decay or spring animation.

#### Composing gestures
The hard part is deciding which gesture wins. A horizontal swipe on a list row competes with the vertical scroll of the list and the edge swipe of the navigator. Gesture systems let you declare **simultaneous**, **exclusive** or **required-to-fail** relationships and activation thresholds (for example, only start a horizontal pan after 10 px of horizontal movement).

#### Tools by stack
- **React Native:** **react-native-gesture-handler** with the `Gesture.Pan()`, `Gesture.Pinch()` API and `GestureDetector`, paired with Reanimated so updates run on the UI thread. `Pressable` covers simple presses.
- **Flutter:** `GestureDetector`, `Dismissible`, `Draggable` and `InteractiveViewer` for zoom and pan.
- **Compose:** `Modifier.clickable`, `draggable`, `transformable` and `pointerInput { detectDragGestures { } }`.
- **SwiftUI:** `DragGesture`, `MagnifyGesture`, `LongPressGesture` combined with `.simultaneously(with:)` or `.exclusively(before:)`.

#### Feel details
- Touch targets of at least 44 pt (iOS) or 48 dp (Android).
- Visual feedback within 100 ms of a touch (ripple, highlight, scale).
- Light **haptics** on meaningful moments like a successful swipe action.
- Always offer a non-gesture alternative (a button or menu) for accessibility.

**Good enough to move on:** you can build a swipe-to-delete row that does not fight the list scroll and snaps back naturally when released early.

Key concepts: Discrete vs continuous gestures, Gesture Handler and GestureDetector, Gesture conflicts with scrolling, Velocity and fling physics, Pinch to zoom, Touch target sizes, Haptic feedback.

Mini project: Build an inbox list with swipe-left to archive, swipe-right to mark read, long press for a context menu, and a pinch-to-zoom image viewer on the detail screen.

Self-check: A horizontal swipe on your list row keeps triggering the list scroll instead. What gesture configuration would you change?

Resources:
- [React Native Gesture Handler](https://docs.swmansion.com/react-native-gesture-handler/) (Software Mansion)
- [Flutter: Taps, drags and other gestures](https://docs.flutter.dev/ui/interactivity/gestures) (Flutter)
- [Compose: Gestures](https://developer.android.com/develop/ui/compose/touch-input/pointer-input) (Android Developers)

### Performance & Profiling

core · advanced · about 8 h · https://www.internhack.in/roadmaps/tracks/mobile/performance-profiling

Measure frame rate, re-renders, memory and CPU with profilers, then fix the usual causes of jank in lists, images and state updates.

Users do not read performance numbers; they feel them. Dropped frames while scrolling, a slow tap response or a warm phone all make an app feel cheap. The discipline is **measure first, fix second, measure again**, always on a real mid-range device with a release build.

#### What to measure
- **Frame rate and frame time:** are frames finishing inside 16 ms?
- **Responsiveness:** time from tap to visible feedback.
- **Memory:** steady growth while navigating signals a leak.
- **CPU, network and battery:** work you do in the background still costs.

#### Profilers by stack
- **React Native:** the Perf Monitor overlay, **React DevTools Profiler** to find components that re-render too often, and Hermes sampling profiles. Native tools (Android Studio, Xcode Instruments) still apply underneath.
- **Flutter:** **DevTools** performance view shows UI and raster thread timings; always profile in `--profile` mode.
- **Android:** Android Studio **Profiler**, **Perfetto** system traces and **Macrobenchmark**.
- **iOS:** **Instruments** templates such as Time Profiler, Allocations, Leaks and Hitches.

#### Common fixes
- **Lists:** virtualise (FlashList or FlatList, `ListView.builder`, `LazyColumn`, `List`), give items stable keys, keep row components cheap and memoised.
- **Re-renders:** split state so a keystroke does not re-render the whole screen; use `React.memo`, selectors, `const` widgets or stable Compose parameters.
- **Images:** request thumbnails sized for the view, cache them (expo-image, cached_network_image, Coil, Kingfisher).
- **Main thread:** move JSON parsing, crypto and heavy loops off it (workers, isolates, coroutines on `Dispatchers.Default`, Swift tasks).

**Good enough to move on:** you can record a profile of a janky screen, point to the cause in the trace, fix it and show the before and after numbers.

Key concepts: Frame time and jank, Profiling release builds on real devices, React DevTools Profiler, Flutter DevTools, Android Profiler, Instruments, List virtualisation and FlashList, Avoiding unnecessary re-renders, Image sizing and caching, Memory leaks, Offloading work from the main thread.

Mini project: Take a feed screen with 1,000 image rows, record a baseline profile, then apply virtualisation, memoisation and image caching and document the frame time improvement.

Self-check: Why is profiling a debug build on an emulator misleading, and what would you do instead?

Resources:
- [React Native: Performance overview](https://reactnative.dev/docs/performance) (React Native)
- [Flutter: Performance](https://docs.flutter.dev/perf) (Flutter)
- [Android: App performance](https://developer.android.com/topic/performance) (Android Developers)

### Startup Time & App Size

optional · advanced · about 4 h · https://www.internhack.in/roadmaps/tracks/mobile/startup-and-app-size

Shrink cold start time and download size with lazy loading, code shrinking, asset optimisation and platform tools like baseline profiles.

First impressions happen before your first screen draws. Slow cold starts and large downloads both cost installs and retention, especially on budget Android phones and metered data.

#### Kinds of start
- **Cold start:** the process is not running; the OS loads the binary, runtime and your initial code. This is the one to optimise.
- **Warm and hot start:** the process or activity already exists, so resuming is faster.

#### Speeding up startup
- Do as little as possible before the first frame: defer analytics setup, remote config and non-critical SDKs until after the first screen renders.
- Keep the splash screen honest; hide it once real content (or a skeleton) is ready, not after an arbitrary timer.
- **React Native:** Hermes precompiles JS to bytecode; lazy-load heavy screens and avoid large synchronous imports at the root.
- **Android:** **Baseline Profiles** tell ART which code to precompile, often cutting startup noticeably. Measure with Macrobenchmark.
- **iOS:** reduce dynamic frameworks and work in `init` and app launch; measure with the App Launch instrument.
- **Flutter:** defer heavy initialisation and consider deferred components on Android.

#### Reducing app size
- Ship **Android App Bundles** so Play delivers only the code and resources a device needs; iOS does similar app thinning.
- Enable **R8** shrinking and resource shrinking on Android.
- Compress images (WebP, AVIF), use vector icons, and download large optional assets on demand.
- Audit dependencies; one convenience library can add megabytes.

**Good enough to move on:** you can measure cold start and install size for your app, name the three biggest contributors, and reduce at least one of them.

Key concepts: Cold, warm and hot start, Deferring non-critical initialisation, Splash screen best practices, Hermes bytecode, Baseline Profiles, App Bundles and app thinning, R8 and resource shrinking, Asset and dependency audits.

Mini project: Measure the cold start of your app on a real device, move two SDK initialisations to after first render, compress assets, and report the start time and size change.

Self-check: Which work in your app's launch path could safely wait until after the first screen is visible?

Resources:
- [Android: App startup time](https://developer.android.com/topic/performance/vitals/launch-time) (Android Developers)
- [Android: Reduce your app size](https://developer.android.com/topic/performance/reduce-apk-size) (Android Developers)
- [React Native: Using Hermes](https://reactnative.dev/docs/hermes) (React Native)

## Testing Mobile Apps

Build a testing pyramid for mobile: fast unit tests for logic, component tests for screens, and a thin layer of end-to-end tests on real builds.

### Unit Testing App Logic

core · intermediate · about 6 h · https://www.internhack.in/roadmaps/tracks/mobile/unit-testing

Test pure logic, hooks, view models and data layers in isolation with Jest, flutter_test, JUnit or XCTest, using fakes for network and storage.

Unit tests are the cheapest safety net you have: they run in milliseconds on your laptop and CI, with no device or emulator. They pay off most when your logic lives outside UI code.

#### What belongs in unit tests
- Formatting, validation and calculation functions.
- Reducers, stores, custom hooks, view models and BLoCs.
- Repositories and mappers that turn API JSON into app models.
- Edge cases: empty lists, missing fields, time zones, currency rounding.

#### Tools by stack
- **React Native:** **Jest** (preconfigured by the `jest-expo` preset) with `describe`, `it` and `expect`. Test hooks with `renderHook` from React Native Testing Library.
- **Flutter:** the `test` and `flutter_test` packages; `mocktail` for mocks.
- **Android:** **JUnit** with `kotlinx-coroutines-test` (`runTest`) and Turbine for flows; MockK for mocks.
- **iOS:** **XCTest** or the newer **Swift Testing** (`@Test`, `#expect`).

#### Designing for testability
- Inject dependencies (API client, clock, storage) rather than importing singletons, so tests can pass fakes.
- Prefer **fakes** (a simple in-memory implementation) over deep mocks; they break less when internals change.
- Keep tests deterministic: control time, random numbers and async scheduling.

#### Arrange, act, assert
```ts
it("applies a 10% discount over 100", () => {
  expect(applyDiscount(120)).toBe(108);
});
```
Name tests after behaviour, one reason to fail per test.

**Good enough to move on:** the core logic of your app (validation, state transitions, data mapping) has fast unit tests that run on every commit.

Key concepts: Testing pyramid for mobile, Jest with jest-expo, flutter_test, JUnit or XCTest, Testing hooks, stores and view models, Fakes vs mocks, Dependency injection for tests, Testing async code and time, Code coverage as a guide.

Mini project: Write a unit test suite for a shopping cart store covering add, remove, quantity limits, discounts and persistence to a fake storage layer.

Self-check: Your view model calls a real API client imported at the top of the file. How would you restructure it so a test can run without the network?

Resources:
- [React Native: Testing](https://reactnative.dev/docs/testing-overview) (React Native)
- [Jest: Getting started](https://jestjs.io/docs/getting-started) (Jest)
- [Flutter: Testing](https://docs.flutter.dev/testing/overview) (Flutter)

### Component & UI Testing

core · intermediate · about 6 h · https://www.internhack.in/roadmaps/tracks/mobile/component-testing

Render screens in a test environment and interact with them the way users do, with React Native Testing Library, widget tests, Compose or XCUITest.

Component tests render a real screen or widget with fake data and assert on what the user would see and do. They catch broken layouts, missing error states and wiring bugs that unit tests cannot.

#### Test like a user
Query by what users perceive (visible text, accessibility labels and roles), not by internal ids or component names. Tests written this way survive refactors and double as accessibility checks.

```tsx
render(<LoginScreen />);
fireEvent.changeText(screen.getByLabelText("Email"), "a@b.co");
fireEvent.press(screen.getByRole("button", { name: "Sign in" }));
expect(await screen.findByText("Welcome back")).toBeOnTheScreen();
```

#### Tools by stack
- **React Native:** **React Native Testing Library** on Jest. Mock the network with MSW or a fake API client, wrap components in the same providers (query client, navigation, theme) as the app.
- **Flutter:** **widget tests** with `testWidgets`, `tester.pumpWidget`, `find.text` and `tester.tap`. Golden tests compare pixels against a stored image.
- **Android:** Compose testing with `createComposeRule`, `onNodeWithText` and `performClick`; Espresso for View-based UIs.
- **iOS:** SwiftUI previews for manual checks, **XCUITest** for automated UI tests, snapshot testing libraries for visual regression.

#### What to cover
- Loading, empty, error and success states of each important screen.
- Form validation messages and disabled buttons.
- Navigation triggers (the right route is pushed with the right params).

#### Snapshot caution
Large snapshot tests break on every small change and get approved without review. Use them narrowly for visual components, and prefer explicit assertions elsewhere.

**Good enough to move on:** each key screen has tests for its main states, written with user-facing queries.

Key concepts: Querying by text, role and label, React Native Testing Library, Flutter widget tests, Compose and Espresso tests, XCUITest, Mocking the network with MSW or fakes, Testing loading, empty and error states, Golden and snapshot tests.

Mini project: Write component tests for a login screen and a product list covering validation errors, a failed request, an empty list and a successful load.

Self-check: Why is querying a button by its accessible name more robust than querying it by a testID or component type?

Resources:
- [React Native Testing Library](https://callstack.github.io/react-native-testing-library/) (Callstack)
- [Flutter: Widget testing](https://docs.flutter.dev/cookbook/testing/widget/introduction) (Flutter)
- [Compose: Testing](https://developer.android.com/develop/ui/compose/testing) (Android Developers)

### End-to-End Testing with Maestro & Detox

recommended · advanced · about 7 h · https://www.internhack.in/roadmaps/tracks/mobile/e2e-testing

Automate full user journeys on simulators and real devices with Maestro, Detox, Patrol or native UI test frameworks, and run them in CI.

End-to-end (E2E) tests install a real build and drive it like a user: launch, tap, type, scroll and assert. They catch problems nothing else does (native crashes, broken deep links, permission dialogs, release-only bugs) but they are slow and can be flaky, so keep the suite small and focused on critical journeys.

#### What to cover
Pick five to ten journeys that must never break: sign up, log in, the main purchase or create flow, logout, and a deep link into a detail screen.

#### Tools
- **Maestro:** readable YAML flows, works with React Native, Flutter and native apps, and tolerates timing by waiting automatically.
```yaml
appId: com.example.shop
---
- launchApp
- tapOn: "Sign in"
- inputText: "test@example.com"
- assertVisible: "Welcome back"
```
- **Detox:** gray-box testing for React Native written in JavaScript; it synchronises with the app's JS thread and network so tests wait for idleness.
- **Patrol** or **integration_test:** Flutter options; Patrol can also tap native permission dialogs.
- **Espresso/UI Automator** and **XCUITest** for native apps.

#### Fighting flakiness
- Use stable selectors (test ids or accessibility labels), never coordinates.
- Seed a known backend state or use a dedicated test environment.
- Avoid fixed sleeps; rely on the framework's waiting.
- Record videos and screenshots on failure to debug CI runs.

#### Running in CI
Run E2E on every pull request against a simulator or emulator, and periodically on real device farms (Firebase Test Lab, BrowserStack, Maestro Cloud, EAS Workflows) to cover different OS versions.

**Good enough to move on:** your two most important user journeys run automatically in CI on a release-like build.

Key concepts: Choosing critical journeys, Maestro flows, Detox for React Native, Patrol and integration_test, Stable selectors and test ids, Test data and environments, Reducing flakiness, Device farms.

Mini project: Write Maestro flows for sign-up, adding an item to a cart and checking out, then run them in a CI job against an emulator with video recording on failure.

Self-check: Your E2E test passes locally but fails one run in five on CI. List three likely causes and how you would investigate them.

Resources:
- [Maestro documentation](https://docs.maestro.dev/) (Maestro)
- [Detox documentation](https://wix.github.io/Detox/) (Wix)
- [Flutter: Integration testing](https://docs.flutter.dev/testing/integration-tests) (Flutter)

## Accessibility, Localization & Security

Make the app usable by everyone and in every language, and protect user data on a device you do not control.

### Mobile Accessibility

core · intermediate · about 6 h · https://www.internhack.in/roadmaps/tracks/mobile/accessibility

Support screen readers, dynamic text, contrast, touch target sizes and reduced motion so people with disabilities can use every feature.

Around one in six people lives with a disability, and many more use accessibility settings every day (larger text, dark mode, reduced motion). Accessible apps are also easier to test automatically and are required by law in many markets.

#### Screen readers
**VoiceOver** (iOS) and **TalkBack** (Android) read out elements and let users swipe between them. Every interactive element needs:
- a **label** (what it is: "Add to cart"),
- a **role** (button, link, header, switch),
- a **state** where relevant (selected, disabled, checked),
- an optional **hint** for non-obvious actions.

In React Native that is `accessibilityLabel`, `accessibilityRole` and `accessibilityState` (or the `aria-*` props). Flutter uses `Semantics`, Compose uses `Modifier.semantics { contentDescription = ... }`, and SwiftUI uses `.accessibilityLabel()` and `.accessibilityAddTraits()`. Hide decorative images from assistive tech and group related elements so a card is read as one item.

#### Visual accessibility
- Support **dynamic type / font scaling**; layouts must grow instead of truncating.
- Meet contrast of at least 4.5:1 for body text.
- Never rely on colour alone to convey meaning (add icons or text).
- Honour **Reduce Motion** and **Bold Text** settings.

#### Motor accessibility
Targets of 44 pt or 48 dp, spacing between them, and alternatives to complex gestures. Test with Switch Control or Switch Access at least once.

#### Testing
Turn on VoiceOver and TalkBack and complete your main flow with your eyes closed. Use Xcode's **Accessibility Inspector** and Android's **Accessibility Scanner**, and add accessible queries to component tests.

**Good enough to move on:** a screen reader user can sign in and complete your core flow, and the app remains usable at the largest text size.

Key concepts: VoiceOver and TalkBack basics, Labels, roles, states and hints, Grouping and focus order, Dynamic type and font scaling, Colour contrast, Touch target sizes, Reduce Motion support, Accessibility Inspector and Scanner.

Mini project: Audit one of your apps with VoiceOver or TalkBack and the largest font size, log every issue you find, and fix them until the core flow works without sight.

Self-check: What does a screen reader announce for an icon-only button without a label, and how do you fix it in your stack?

Resources:
- [React Native: Accessibility](https://reactnative.dev/docs/accessibility) (React Native)
- [Android: Make apps more accessible](https://developer.android.com/guide/topics/ui/accessibility/apps) (Android Developers)
- [Apple: Accessibility](https://developer.apple.com/accessibility/) (Apple)

### Internationalization & Localization

optional · intermediate · about 4 h · https://www.internhack.in/roadmaps/tracks/mobile/localization

Prepare the app for multiple languages, regions, number and date formats, and right-to-left layouts, then translate it.

Most app installs come from outside English-speaking countries. **Internationalization (i18n)** is engineering the app so it can adapt; **localization (l10n)** is actually adapting it for a locale.

#### Externalise every string
Never hardcode user-facing text. Keep strings in resource files keyed by id:
- **React Native / Expo:** `i18next` with `react-i18next`, or `expo-localization` plus a library like `i18n-js`, with JSON files per locale.
- **Flutter:** ARB files and `flutter gen-l10n`, used via `AppLocalizations.of(context)`.
- **Android:** `res/values-<lang>/strings.xml` and `stringResource(R.string.title)`.
- **iOS:** **String Catalogs** (`.xcstrings`) with `String(localized:)`.

#### Plurals and variables
Languages have different plural rules (Arabic has six forms). Use ICU message format or platform plural resources instead of concatenating: `{count, plural, one {# item} other {# items}}`.

#### Formats
Format dates, numbers, currencies and units with locale-aware APIs (`Intl` in JavaScript, `intl` in Dart, `NumberFormat` and `DateTimeFormatter` natively). Never build "MM/DD" strings by hand.

#### Right-to-left and text expansion
Arabic, Hebrew and Urdu read right to left. Use start and end instead of left and right in layouts, and mirror directional icons. German and Finnish strings can be 30 to 40 percent longer than English, so avoid fixed-width buttons.

#### Process
Use a translation management tool (Crowdin, Lokalise, Weblate) synced from CI, provide context screenshots to translators, and test with a pseudo-locale that lengthens and accents text.

**Good enough to move on:** your app runs fully in a second language, including one right-to-left locale, with correct plurals and date formats.

Key concepts: i18n vs l10n, String resource files, Plurals and ICU messages, Locale-aware dates and numbers, Right-to-left layouts, Text expansion and pseudo-locales, Translation management tools.

Mini project: Localise a small app into two languages including Arabic or Hebrew, with plural-aware strings, localised dates and currency, and a mirrored layout.

Self-check: Why is building a message with string concatenation like count + " items" a problem for translation?

Resources:
- [Expo: Localization](https://docs.expo.dev/guides/localization/) (Expo)
- [Flutter: Internationalizing Flutter apps](https://docs.flutter.dev/ui/accessibility-and-internationalization/internationalization) (Flutter)
- [Android: Localize your app](https://developer.android.com/guide/topics/resources/localization) (Android Developers)

### Secure Storage & Secrets

core · intermediate · about 4 h · https://www.internhack.in/roadmaps/tracks/mobile/secure-storage

Store tokens and sensitive data in the Keychain or Keystore, keep secrets out of the app bundle, and protect data at rest.

Assume your app binary will be downloaded, unzipped and inspected, and that some devices are rooted or jailbroken. Anything shipped inside the app is effectively public.

#### Where sensitive data goes
- **Tokens, passwords and keys:** the platform secure store. **Keychain** on iOS and **Keystore**-backed encryption on Android. Wrappers: `expo-secure-store`, `react-native-keychain`, `flutter_secure_storage`, Android's `EncryptedSharedPreferences` successors or DataStore with Tink.
- **Non-sensitive preferences:** AsyncStorage, SharedPreferences, UserDefaults. These are plain files.
- **Databases with personal data:** consider SQLCipher or encrypted Realm, and whether you need to store that data at all.

```ts
import * as SecureStore from "expo-secure-store";
await SecureStore.setItemAsync("refreshToken", token);
```

#### Secrets do not belong in the app
API keys for paid services, database credentials and signing keys must stay on your server. The app should call **your backend**, which holds the secret. Public client keys (Firebase config, Maps keys) are fine to ship but restrict them by package name, bundle id and API scope.

#### Other data-at-rest risks
- Logs that print tokens or personal data (strip them in release builds).
- Screenshots in the app switcher showing sensitive screens (blur or secure-flag them).
- Clipboard use for passwords and codes.
- Backups: exclude secrets from cloud backups where appropriate.

#### Biometrics
Use biometrics to unlock a key held in the secure store (access control flags), not as a simple yes/no check in JavaScript that could be bypassed.

**Good enough to move on:** your auth tokens live only in secure storage, no private secrets appear in the bundle, and sensitive screens are hidden in the app switcher.

Key concepts: Keychain and Keystore, expo-secure-store and equivalents, Why app bundles cannot hold secrets, Restricting public API keys, Encrypted databases, Log and screenshot hygiene, Biometric-bound keys.

Mini project: Refactor an app that stores tokens in plain storage to use secure storage, move a third-party API key behind a small backend proxy, and blur the app in the task switcher.

Self-check: A teammate wants to put a payment provider secret key in an environment variable bundled with the app. What do you tell them?

Resources:
- [Expo: SecureStore](https://docs.expo.dev/versions/latest/sdk/securestore/) (Expo)
- [React Native: Security](https://reactnative.dev/docs/security) (React Native)
- [Android: Keystore system](https://developer.android.com/privacy-and-security/keystore) (Android Developers)

### Mobile App Security with OWASP MASVS

recommended · advanced · about 5 h · https://www.internhack.in/roadmaps/tracks/mobile/app-security-masvs

Use the OWASP MASVS and testing guide to secure network traffic, platform interactions, code and privacy, and understand what pinning and obfuscation really buy you.

The **OWASP Mobile Application Security Verification Standard (MASVS)** is the industry checklist for mobile security, and the **MASTG** testing guide explains how to verify each control. Security reviews and enterprise clients often ask for it by name.

#### MASVS control groups
- **STORAGE:** sensitive data is stored securely and not leaked (logs, backups, keyboard caches).
- **CRYPTO:** use platform crypto correctly; no home-made algorithms or hardcoded keys.
- **AUTH:** authentication and session handling are enforced on the server, not only in the UI.
- **NETWORK:** all traffic uses TLS with proper certificate validation.
- **PLATFORM:** safe use of intents, deep links, WebViews and IPC.
- **CODE:** dependencies are up to date, input is validated, debug features are off in release.
- **RESILIENCE:** anti-tampering and reverse-engineering defences for high-risk apps.
- **PRIVACY:** data minimisation, transparency and user control.

#### Practical defences
- **Validate deep links and intent data**; treat them as untrusted input that can open any screen.
- **WebViews:** disable JavaScript bridges you do not need and only load trusted origins.
- **Certificate pinning** can stop interception on compromised networks, but a rotated certificate can lock every user out. Use it only with a backup pin and an update plan.
- **Obfuscation** (R8, Hermes bytecode) raises the effort to reverse-engineer but never protects secrets.
- **Device integrity** checks such as Play Integrity and App Attest help detect tampered clients; enforce the result on the server.

#### Privacy obligations
Declare data collection accurately in Play's **Data safety** form and Apple's **privacy nutrition labels** and privacy manifests. Ask only for data you need.

**Good enough to move on:** you can walk through MASVS for your app, show which controls you meet, and explain the trade-off of certificate pinning.

Key concepts: MASVS control groups, Server-side enforcement of auth, TLS and certificate pinning, Deep link and WebView safety, Obfuscation and its limits, Play Integrity and App Attest, Dependency vulnerability scanning, Privacy labels and data safety forms.

Mini project: Run a MASVS self-assessment on your app, record findings in a table (control, status, fix), and fix the two highest-risk items such as unvalidated deep links or verbose release logs.

Self-check: Why does hiding a premium feature in the UI not protect it, and where must that check actually happen?

Resources:
- [OWASP MASVS](https://mas.owasp.org/MASVS/) (OWASP)
- [OWASP MASTG](https://mas.owasp.org/MASTG/) (OWASP)
- [Android: App security best practices](https://developer.android.com/privacy-and-security/security-tips) (Android Developers)

## Builds, CI/CD & Store Publishing

Turn source code into signed builds, automate them in CI, get them to testers, pass store review and ship fixes over the air.

### Build Variants & Code Signing

core · intermediate · about 5 h · https://www.internhack.in/roadmaps/tracks/mobile/builds-and-signing

Understand debug vs release builds, environments and flavors, and how Android keystores and Apple certificates and provisioning profiles prove who built an app.

Before an app reaches a store it must be built in **release** mode and **signed**. Signing is how Android and iOS know an update really comes from you, and losing or mishandling keys is one of the most painful mistakes in mobile.

#### Build types and environments
- **Debug** builds include dev tools and connect to a dev server; **release** builds are optimised, minified and what users get.
- Most teams need **environments** (development, staging, production) with different API URLs, app names and icons so they can be installed side by side. Use Android **product flavors**, Xcode **schemes and configurations**, Flutter `--flavor` and `--dart-define`, or Expo `app.config.ts` reading an environment variable.
- Bump **versionName/versionCode** (Android) and **CFBundleShortVersionString/CFBundleVersion** (iOS) for each upload; build numbers must always increase.

#### Android signing
You sign with a private key in a **keystore**. With **Play App Signing**, Google keeps the app signing key and you upload builds with a separate **upload key** that can be reset if lost. Never commit keystores or passwords to Git.

#### iOS signing
Apple requires a paid developer account. The pieces are:
- a **certificate** (development or distribution) tied to a private key,
- an **App ID** (bundle identifier) with capabilities like push,
- a **provisioning profile** linking certificate, app id and (for development) devices.

Xcode's automatic signing handles this for solo developers. Teams use **EAS credentials** or **Fastlane match** to share them safely.

#### Managed option
**EAS Build** can generate and store keystores, certificates and profiles for you, then build in the cloud with `eas build --platform all --profile production`.

**Good enough to move on:** you can produce a signed release build for each platform, install staging and production side by side, and explain where your signing keys are stored.

Key concepts: Debug vs release builds, Environments, flavors and schemes, Version names and build numbers, Android keystores and Play App Signing, Apple certificates and provisioning profiles, EAS Build and credentials, Fastlane match.

Mini project: Set up staging and production variants of an app with different names, icons and API URLs, and produce a signed release build of each for Android and iOS.

Self-check: What happens if you lose your Android signing key without Play App Signing, and how does Play App Signing change that?

Resources:
- [Expo: EAS Build](https://docs.expo.dev/build/introduction/) (Expo)
- [Android: Sign your app](https://developer.android.com/studio/publish/app-signing) (Android Developers)
- [Apple: Code signing](https://developer.apple.com/support/code-signing/) (Apple)

### Mobile CI/CD with EAS, Fastlane & Codemagic

core · intermediate · about 6 h · https://www.internhack.in/roadmaps/tracks/mobile/mobile-ci-cd

Automate linting, tests, builds, signing and store uploads on every merge using EAS Workflows, Fastlane, Codemagic, Bitrise or GitHub Actions.

Manually building and uploading apps from a laptop does not scale and is error-prone. Mobile CI/CD automates the path from a merged pull request to a build in testers' hands.

#### A typical pipeline
1. **On every pull request:** install dependencies, type check, lint, run unit and component tests.
2. **On merge to main:** build signed staging binaries and distribute them to internal testers.
3. **On a release tag:** build production binaries, upload to TestFlight and the Play internal track, and optionally submit for review.
4. **Optionally:** run E2E tests against the built app and publish an OTA update for JS-only changes.

#### Tooling options
- **EAS Build, Submit and Workflows:** the natural fit for Expo apps, with cloud macOS builders and managed credentials.
- **Fastlane:** Ruby-based automation of builds, signing (`match`), screenshots and uploads (`pilot`, `supply`). Works with any stack.
- **Codemagic:** hosted CI with first-class Flutter support and macOS machines.
- **Bitrise** and **GitHub Actions** (with macOS runners) are also common.

```yaml
# GitHub Actions step for an Expo app
- run: npx eas-cli build --platform all --profile production --non-interactive
  env:
    EXPO_TOKEN: ${{ secrets.EXPO_TOKEN }}
```

#### Mobile-specific concerns
- iOS builds need **macOS**; cloud builders avoid maintaining Macs.
- Store signing material as encrypted CI secrets, never in the repository.
- Auto-increment build numbers from CI.
- Cache dependencies (node_modules, Gradle, CocoaPods, pub) to keep builds fast.
- Builds are slow and cost money, so run full native builds only when needed.

**Good enough to move on:** merging to main automatically produces a signed build that testers can install, with tests gating the pipeline.

Key concepts: Pipeline stages for mobile, EAS Build, Submit and Workflows, Fastlane lanes and match, Codemagic for Flutter, GitHub Actions with macOS runners, Secrets and signing in CI, Automatic build numbers, Caching dependencies.

Mini project: Create a pipeline where every PR runs tests, every merge to main builds and distributes a staging app, and every git tag submits production builds to TestFlight and the Play internal track.

Self-check: Why do iOS builds usually need a macOS runner, and how do cloud build services help small teams?

Resources:
- [Expo: EAS Workflows](https://docs.expo.dev/eas/workflows/get-started/) (Expo)
- [Fastlane documentation](https://docs.fastlane.tools/) (Fastlane)
- [Codemagic documentation](https://docs.codemagic.io/) (Codemagic)

### Beta Testing & Internal Distribution

recommended · intermediate · about 3 h · https://www.internhack.in/roadmaps/tracks/mobile/beta-distribution

Get builds to teammates and beta users with TestFlight, Play testing tracks, Firebase App Distribution and EAS internal builds, and collect useful feedback.

Shipping straight from your simulator to the public store skips the most valuable feedback loop: real people on real devices. Every mobile team runs some form of beta program.

#### Distribution channels
- **TestFlight (iOS):** up to 100 internal testers from your App Store Connect team and up to 10,000 external testers via email or a public link. External builds need a light beta review. Builds expire after 90 days.
- **Google Play testing tracks:** **internal** (up to 100 testers, available in minutes), **closed** (invited groups or Google Groups) and **open** (anyone can join from the listing). New personal developer accounts must run a closed test with a minimum number of testers before production access.
- **Firebase App Distribution:** send Android and iOS builds to testers without going through store tooling.
- **EAS internal distribution** and development builds: install-by-link builds for your team, including registered iOS devices.

#### Running a useful beta
- Write release notes that tell testers what to try.
- Make feedback easy: TestFlight screenshots with comments, a shake-to-report tool, or an in-app form.
- Ship crash reporting in beta builds so issues arrive with stack traces.
- Test on a spread of devices: small and large screens, old OS versions, low-end Android phones.

#### Staged rollouts
On Play, release production updates to a percentage of users (for example 5, 20, 50, then 100 percent) and halt if crash rates rise. App Store **phased release** does the same over seven days for automatic updates.

**Good enough to move on:** you can put a new build in testers' hands on both platforms within an hour and gather structured feedback from them.

Key concepts: TestFlight internal and external testing, Play internal, closed and open tracks, Firebase App Distribution, EAS internal distribution, Collecting tester feedback, Device coverage, Staged and phased rollouts.

Mini project: Run a one-week beta with at least five testers on TestFlight and a Play closed track, collect their feedback in a tracker, and ship a fixed build.

Self-check: What is a staged rollout, and what metric would make you halt one?

Resources:
- [Apple: TestFlight](https://developer.apple.com/testflight/) (Apple)
- [Play Console Help: Set up testing](https://support.google.com/googleplay/android-developer/answer/9845334) (Google)
- [Firebase App Distribution](https://firebase.google.com/docs/app-distribution) (Firebase)

### Publishing to Google Play & the App Store

core · intermediate · about 5 h · https://www.internhack.in/roadmaps/tracks/mobile/store-publishing

Prepare store listings, privacy disclosures and screenshots, pass Play Console and App Store review, and manage releases after launch.

Publishing is a product task as much as a technical one. Both stores have review processes, policy requirements and metadata that decide whether users find and trust your app.

#### Accounts
- **Google Play Console:** one-time registration fee, identity verification, and for new personal accounts a closed testing requirement before production.
- **Apple Developer Program:** yearly fee; apps are managed in **App Store Connect**.

#### Store listing
- App name, subtitle or short description, full description and keywords (App Store) for **App Store Optimisation**.
- **Screenshots** for required device sizes, an app icon, optional preview video and feature graphic (Play).
- Category, content rating questionnaire, support URL and a **privacy policy URL**.

#### Privacy and compliance
- Apple **privacy nutrition labels** and **privacy manifests** declaring data collected and required reason APIs.
- Play **Data safety** form, target API level requirements and permission declarations (for example background location needs justification).
- Account deletion must be available in-app if users can create accounts.
- Sign in with Apple is required on iOS when you offer other third-party social logins (with some exceptions).

#### Passing review
Common rejection reasons: crashes, placeholder content, broken links, missing demo credentials for reviewers, unclear purpose strings for permissions, and digital goods sold outside the stores' payment systems where not allowed. Provide a demo account and notes for reviewers.

#### After launch
Monitor **Android vitals** and App Store crash data, reply to reviews, and plan regular updates. Use `eas submit` or Fastlane `deliver` and `supply` to automate uploads and metadata.

**Good enough to move on:** you have taken an app through a complete submission on at least one store, including privacy disclosures, and know how to respond to a rejection.

Key concepts: Play Console and App Store Connect setup, Store listing and screenshots, App Store Optimisation, Privacy labels, manifests and Data safety, Content ratings and policies, Review guidelines and rejections, Automated submission with eas submit, Responding to reviews and vitals.

Mini project: Prepare a complete store listing for your app (texts, screenshots, privacy policy, Data safety and privacy labels) and submit it to at least one store's review.

Self-check: Name three common reasons apps are rejected in review and how you would prevent each.

Resources:
- [Apple: App Review Guidelines](https://developer.apple.com/app-store/review/guidelines/) (Apple)
- [Play Console Help](https://support.google.com/googleplay/android-developer/) (Google)
- [Expo: Submit to app stores](https://docs.expo.dev/submit/introduction/) (Expo)

### Over-the-Air Updates

recommended · intermediate · about 3 h · https://www.internhack.in/roadmaps/tracks/mobile/ota-updates

Ship JavaScript and asset fixes without a store release using EAS Update or Shorebird, with runtime versions, channels and safe rollback.

Store review and user update habits mean a native release can take days to reach people. **Over-the-air (OTA) updates** let React Native and Flutter apps download new code bundles at launch, so a typo or logic bug can be fixed in minutes.

#### How it works
The native binary contains an update client. On launch (or on demand) it checks a server for a newer bundle that is **compatible** with the installed native code, downloads it, and applies it on the next start or immediately.

#### Tools
- **EAS Update** (`expo-updates`): publish with `eas update --channel production --message "Fix checkout total"`. Builds are tied to **channels**, and updates to a **runtime version** that must match the native layer.
- **Shorebird:** code push for Flutter apps.
- Native Swift and Kotlin apps cannot hot-swap code; they rely on **remote config** and feature flags instead.

#### Runtime versions are the key safety rule
An OTA bundle can only change JavaScript (or Dart) and assets. If you add a native module or change native config, you need a new store build with a new runtime version. Using the `fingerprint` policy lets Expo compute this automatically.

#### Rolling out safely
- Publish to a **staging channel** first and test on a real build.
- Use **percentage rollouts** and watch crash reporting.
- Know how to **roll back** to the previous update or the embedded bundle.
- Decide the update strategy: check on launch and apply next time (least disruptive), or force critical fixes.

#### Store policy
Both stores allow updating interpreted code as long as you do not change the app's primary purpose or bypass review for new features. Keep OTA for fixes and small improvements.

**Good enough to move on:** you can ship a JS-only fix to a staging channel, verify it, roll it out to production, and explain when a new store build is required instead.

Key concepts: How OTA update clients work, EAS Update channels and branches, Runtime versions and fingerprints, Shorebird for Flutter, Remote config for native apps, Percentage rollouts and rollback, Store policy limits.

Mini project: Configure EAS Update with staging and production channels, publish a visible change to staging, promote it to production at 10 percent, then roll it back.

Self-check: You added a new native camera library. Can you ship that feature with an OTA update? Why or why not?

Resources:
- [Expo: EAS Update](https://docs.expo.dev/eas-update/introduction/) (Expo)
- [Expo: Runtime versions](https://docs.expo.dev/eas-update/runtime-versions/) (Expo)
- [Shorebird documentation](https://docs.shorebird.dev/) (Shorebird)

## Analytics, Crash Reporting & Monetization

Know what happens to your app in the wild: track crashes and product usage, experiment safely with remote config, and optionally earn money from it.

### Crash Reporting & Monitoring

core · intermediate · about 4 h · https://www.internhack.in/roadmaps/tracks/mobile/crash-reporting

Capture crashes, errors and performance traces from real users with Sentry or Firebase Crashlytics, with symbolicated stack traces and release health.

Once an app is on thousands of devices you cannot reproduce every bug yourself. Crash reporting tells you what broke, on which device and OS, in which release, and how many users it affects.

#### What to capture
- **Native crashes** (Kotlin, Swift, C++) and **JavaScript or Dart errors**, including unhandled promise rejections.
- **ANRs** (Android "app not responding") and app hangs on iOS.
- **Breadcrumbs:** the navigation, network calls and taps leading up to the error.
- **Release health:** crash-free sessions and users per release, so you can halt a rollout early.
- **Performance traces:** slow screens, cold start time and slow network requests.

#### Tools
- **Sentry:** strong React Native and Flutter SDKs, source maps, session replay, performance monitoring. Set it up in Expo via the `@sentry/react-native` config plugin.
- **Firebase Crashlytics:** free, native-focused, with good Android vitals style dashboards and integration with Analytics.
- **Play Console Android vitals** and **Xcode Organizer** give baseline crash and ANR data even without an SDK.

#### Readable stack traces
Release builds are minified. Upload **source maps** (JS), **dSYM** files (iOS) and **R8 mapping** files (Android) from CI for every build and OTA update, or stack traces will be unreadable. Tag each event with release and build numbers.

#### Good hygiene
- Add user ids (not emails) so you can count affected users while respecting privacy.
- Scrub tokens and personal data from events.
- Set alerts for new issues and regressions, and triage weekly.
- Wrap screens in **error boundaries** so a crash in one widget shows a fallback instead of killing the app.

**Good enough to move on:** a thrown test error in a release build shows up in your dashboard with a readable stack trace, release tag and breadcrumbs.

Key concepts: Native crashes, JS errors and ANRs, Sentry for React Native and Flutter, Firebase Crashlytics, Source maps, dSYMs and R8 mappings, Breadcrumbs and context, Release health and crash-free rate, Error boundaries, Scrubbing personal data.

Mini project: Integrate Sentry or Crashlytics, upload symbols from CI, trigger a native crash and a JS error in a release build, and confirm both arrive with readable traces.

Self-check: Your crash report shows only minified function names like a.b.c. What step in your release pipeline is missing?

Resources:
- [Sentry for React Native](https://docs.sentry.io/platforms/react-native/) (Sentry)
- [Firebase Crashlytics](https://firebase.google.com/docs/crashlytics) (Firebase)
- [Android vitals](https://developer.android.com/topic/performance/vitals) (Android Developers)

### Product Analytics, Remote Config & Experiments

recommended · intermediate · about 4 h · https://www.internhack.in/roadmaps/tracks/mobile/analytics

Instrument meaningful events, build funnels and retention views, and use remote config, feature flags and A/B tests to change the app without shipping a build.

Crash reporting tells you the app works; analytics tells you whether people get value from it. The goal is a few trustworthy events that answer real product questions, not tracking every tap.

#### Designing events
- Start from questions: "Where do new users drop off during onboarding?" "Do users who save a favourite come back more?"
- Name events consistently in `object_action` form: `signup_completed`, `item_added_to_cart`, `checkout_started`.
- Attach useful properties (plan, source screen) and set user properties sparingly.
- Keep a **tracking plan** document so events stay consistent across platforms.

#### Key views
- **Funnels:** step-by-step conversion through onboarding or checkout.
- **Retention:** percentage of users returning on day 1, 7 and 30.
- **Active users** (DAU, MAU) and **screen views**.

#### Tools
**Firebase Analytics** (Google Analytics for Firebase) is free and pairs with Crashlytics and Remote Config. **PostHog**, **Amplitude** and **Mixpanel** offer richer product analysis; PostHog can be self-hosted.

#### Remote config and feature flags
Remote config values (a banner text, a timeout, whether a feature is on) are fetched at runtime, so you can change behaviour or kill a broken feature without a release. Feature flags can target a percentage or segment of users, which enables gradual launches and **A/B tests** that compare variants on a chosen metric.

#### Privacy and consent
- Ask for consent where required (GDPR, and Apple's **App Tracking Transparency** prompt before cross-app tracking).
- Do not send personal data as event properties.
- Declare analytics in store privacy disclosures.

**Good enough to move on:** you can answer "what percentage of new users finish onboarding?" from real data and toggle a feature remotely.

Key concepts: Tracking plans and event naming, Funnels and retention, Firebase Analytics, PostHog, Amplitude or Mixpanel, Remote config, Feature flags and gradual launches, A/B testing basics, Consent and App Tracking Transparency.

Mini project: Write a tracking plan for onboarding, instrument it, build an onboarding funnel, and put a new onboarding screen behind a remote flag rolled out to 50 percent of users.

Self-check: Why is tracking every button tap usually worse than tracking ten well-defined events?

Resources:
- [Google Analytics for Firebase](https://firebase.google.com/docs/analytics) (Firebase)
- [Firebase Remote Config](https://firebase.google.com/docs/remote-config) (Firebase)
- [PostHog: React Native](https://posthog.com/docs/libraries/react-native) (PostHog)

### Monetization: In-app Purchases, Subscriptions & Ads

optional · advanced · about 6 h · https://www.internhack.in/roadmaps/tracks/mobile/monetization

Earn revenue with store billing for digital goods and subscriptions, server-side receipt validation, and ad SDKs, while following store payment rules.

Not every app needs to make money directly, but if yours does, the store rules shape your design more than any code decision.

#### Models
- **Paid upfront:** simple but rare today.
- **In-app purchases (IAP):** consumables (coins), non-consumables (unlock pro forever).
- **Subscriptions:** recurring access with free trials and introductory offers; the dominant model for content and productivity apps.
- **Ads:** banners, interstitials and rewarded video through **Google AdMob** or mediation networks.
- **Physical goods and services** (food delivery, rides) use normal payment providers such as Stripe, not store billing.

#### Store billing rules
Digital goods and features consumed inside the app generally must use **Google Play Billing** and Apple **StoreKit**, with the store taking a commission. Rules for linking to external payments vary by region and change often, so read the current guidelines before designing a paywall.

#### Implementation
- Native: **StoreKit 2** on iOS, **Play Billing Library** on Android.
- Cross-platform: `react-native-iap`, `expo-iap`, Flutter's `in_app_purchase`, or **RevenueCat**, which wraps both stores, validates receipts and tracks entitlements.
- **Validate purchases on a server** (or via RevenueCat) and store entitlements server-side. Never trust a boolean in local storage.
- Handle restore purchases, refunds, grace periods, cancellations and family sharing.
- Test with sandbox accounts and Play license testers.

#### Ads without ruining UX
Show ads at natural breaks, never cover content or buttons, respect frequency caps, and comply with consent requirements (UMP, ATT). Rewarded ads that the user opts into perform best and annoy least.

**Good enough to move on:** you can sell a subscription in a sandbox, unlock features based on a server-verified entitlement, and restore it on a fresh install.

Key concepts: Monetization models, Store payment rules, StoreKit 2 and Play Billing, RevenueCat, Server-side receipt validation, Restore purchases and entitlements, Sandbox and license testing, AdMob and ad UX.

Mini project: Add a monthly subscription with a free trial using RevenueCat or the native SDKs, gate a premium screen by entitlement, and verify restore works on a second device.

Self-check: Why must premium access be decided by a server-validated entitlement rather than a flag the app saves after purchase?

Resources:
- [Google Play Billing](https://developer.android.com/google/play/billing) (Android Developers)
- [Apple: In-App Purchase](https://developer.apple.com/in-app-purchase/) (Apple)
- [RevenueCat documentation](https://www.revenuecat.com/docs) (RevenueCat)

## Capstone & Career

Combine everything into a production-grade app you can publish, then turn it into portfolio proof and interview readiness.

### Capstone: Ship a Production-grade App

core · advanced · about 40 h · https://www.internhack.in/roadmaps/tracks/mobile/capstone

Design, build, test and publish a complete offline-capable app with auth, push notifications, CI/CD, monitoring and a real store listing.

The capstone proves you can take an idea all the way to users. Pick something small enough to finish in four to six weeks but real enough to exercise the full stack. Good examples: a habit tracker with streaks and reminders, a local events finder, a shared grocery list, or a workout logger.

#### Required scope
- **Auth:** email or social sign-in with tokens in secure storage.
- **Data:** a backend (your own API or Firebase/Supabase) with a typed client and query cache.
- **Offline-first:** core screens usable without a connection, with sync on reconnect.
- **At least one device capability:** camera, location, notifications or biometrics, with polite permission flows.
- **Push notifications** that deep link into the right screen.
- **Polish:** loading, empty and error states, animations with Reduce Motion support, dark mode.
- **Accessibility:** passes a screen reader walkthrough and large text check.

#### Engineering requirements
- A clear architecture document (folders, state approach, data flow diagram).
- Unit and component tests for core logic and screens, plus two E2E flows.
- CI that runs tests on pull requests and builds signed staging and production apps.
- Crash reporting with symbols uploaded, and a handful of analytics events.
- OTA updates or remote config for fast fixes.

#### Ship it
Run a short beta with real testers, fix their top issues, and submit to at least one store (Play internal or closed testing counts if public release is not possible). Write a README with screenshots, a demo video, setup steps and a section on trade-offs you made and what you would do next.

**Done when:** a stranger can install your app from a store or test link, use it offline, and you can walk an interviewer through every layer and decision.

Key concepts: Scoping and user stories, Architecture document, Auth, data and offline sync, Device feature and notifications, Tests and CI pipeline, Monitoring and analytics, Beta and store submission, README and demo video.

Mini project: Build and publish the capstone app described above, with a public repository, CI badges, a demo video and a store or test link.

Self-check: Can you explain how a change goes from a pull request to a user's phone in your project, including tests, builds, signing, review and monitoring?

Resources:
- [Expo: Tutorial](https://docs.expo.dev/tutorial/introduction/) (Expo)
- [Flutter: Write your first app](https://docs.flutter.dev/get-started/codelab) (Flutter)
- [Android Basics with Compose](https://developer.android.com/courses/android-basics-compose/course) (Android Developers)

### Portfolio & Mobile Interview Prep

recommended · intermediate · about 6 h · https://www.internhack.in/roadmaps/tracks/mobile/portfolio-and-interviews

Present your apps convincingly and prepare for mobile interviews: platform fundamentals, lifecycle and rendering questions, take-home apps and system design.

Hiring managers for mobile roles want evidence that you can ship, not only that you finished tutorials. Your capstone and one or two smaller apps are that evidence if you present them well.

#### Portfolio
- Two or three polished apps beat ten half-finished ones. Link store listings or test builds, not only code.
- Each repository needs screenshots or a GIF, a short demo video, setup instructions, an architecture section and tests running in CI.
- Write a short case study per app: the problem, key decisions (why Expo, why this state library, how sync works) and what you would improve.
- Contributions to open-source libraries in your stack (docs fixes count) signal you can work in real codebases.

#### What interviews cover
- **Language and framework fundamentals:** closures and async in JS or Dart, coroutines in Kotlin, value vs reference types in Swift, hooks and re-render rules in React.
- **Platform knowledge:** app and screen lifecycle, what happens on backgrounding, permissions, threading and the main thread, how lists are virtualised.
- **Practical coding:** build a small screen that fetches, paginates and caches data, often as a take-home app with a few hours' budget.
- **Mobile system design:** design a chat, feed or photo-sharing app covering offline storage, sync, pagination, image caching, push and failure handling.
- **Behavioural:** a bug you debugged in production, a trade-off you made, working with designers and backend teams.

#### Take-home tips
Treat it like production: clear structure, loading and error states, a few tests, a README explaining trade-offs and what you left out due to time.

**Good enough to move on:** you have a portfolio page linking shippable apps, and you can whiteboard the architecture of an offline-capable feed app in 30 minutes.

Key concepts: Portfolio repositories and case studies, Store links and demo videos, Framework and language fundamentals, Lifecycle and threading questions, Take-home app exercises, Mobile system design, Open-source contributions, Behavioural stories.

Mini project: Publish a portfolio page with your capstone and one more app, each with a case study, then do a timed mock take-home: a paginated, cached list and detail app in four hours.

Self-check: In a system design interview for a photo feed app, how would you handle image caching, pagination and posting while offline?

Resources:
- [Android: Guide to app architecture](https://developer.android.com/topic/architecture) (Android Developers)
- [React Native: Core components and APIs](https://reactnative.dev/docs/components-and-apis) (React Native)
- [Apple: SwiftUI tutorials](https://developer.apple.com/tutorials/swiftui) (Apple)

## Related

- [Career roadmaps](https://www.internhack.in/roadmaps)
