Study · 11 layers ·
Mobile apps, from idea to store and after
A mobile app is a program that lives on a phone. Making one is much more than writing code. Someone has to decide what the app should do, design screens that feel right on iPhone and Android, build a server it can talk to, keep people’s data safe, prove to Apple and Google who made it, pass their reviews, and then keep it working as phones and rules change every year. This page walks through each of those layers from the bottom up, in plain words, so a company, a developer, an employee or a client can see where their part fits.
How phones run apps
iOS and Android, sandboxes and permissions.
Almost every phone runs one of two operating systems. iOS is made by Apple and runs only on iPhones. Android is led by Google and runs on phones from many makers, such as Samsung, Xiaomi and Google itself. An operating system is the base program that controls the screen, the battery, the camera and everything else, and lets apps use them in a safe way.
Each app lives in its own sandbox. A sandbox is a walled-off space: the app can read and write its own files, but it cannot look inside other apps or change the system. On Android, every app even gets its own user account inside the phone, so the system can keep apps apart. If one app is badly written or harmful, the wall stops it from reaching the rest of the phone.
To get past the wall, an app must ask. Using the camera, the microphone, your location, your contacts or photos needs a permission, and the phone shows you a pop-up so you can say yes or no. Good apps ask at the moment the feature is needed and explain why. You can take a permission back later in the settings.
The phone also controls when an app runs. When you switch away, the app is paused, and the system may close it to save battery and memory. Apps must be built to save their work and come back cleanly, which is called handling the app lifecycle.
- Two platforms matter almost everywhere: iOS (Apple) and Android (Google and many phone makers).
- On iPhone, apps normally come from Apple’s App Store; Android also allows other stores and direct installs.
- The sandbox keeps each app’s data apart from other apps.
- Permissions are asked at run time, and the person can refuse or remove them later.
- The system can pause or close an app at any time, so it must save its state.
/ Tools and names to know
/ Quick read
- WikiMobile appA short overview of what mobile apps are and where they come from.en.wikipedia.org
- WikiiOSThe history and design of Apple’s phone system.en.wikipedia.org
- WikiAndroid (operating system)How Android is built and who makes it.en.wikipedia.org
- WikiSandbox (computer security)The general idea of running programs inside walls.en.wikipedia.org
/ Deep read
- OfficialApplication Sandbox (Android Open Source Project)How Android keeps each app apart, from the people who build it.source.android.com
- OfficialPermissions on AndroidThe kinds of permissions and how apps should ask for them.developer.android.com
- OfficialApple Platform SecurityApple’s full guide to how iPhone protects apps and data.support.apple.com
Native or cross-platform
Swift, Kotlin, Flutter, React Native, and how to choose.
A native app is written in the language each platform was made for. For iPhone that is Swift, usually with SwiftUI for the screens. For Android it is Kotlin, usually with Jetpack Compose. Native apps get every new phone feature first and feel exactly at home, but you build and look after two separate apps.
A cross-platform app is written once and runs on both. Flutter, from Google, uses the Dart language and draws every pixel of the screen itself, so the app looks the same everywhere. React Native, started at Meta, uses JavaScript and React and turns your screens into the phone’s own buttons and lists. Kotlin Multiplatform is a middle path: you share the logic, and can keep native screens.
To choose, ask a few plain questions. Does the team already know one of these? Does the app lean hard on special phone features, like advanced camera, health data or widgets? Do you need both platforms on day one with a small team? A small team that must ship on both often picks a cross-platform tool; an app that lives on deep phone features often goes native. Any of them can make a good app, and a bad app can be written in any of them.
- Native: Swift and SwiftUI for iOS, Kotlin and Jetpack Compose for Android.
- Cross-platform: one codebase for both, such as Flutter or React Native.
- Cross-platform apps can still call native code when they need a phone feature.
- Choose by team skills, the phone features you need, and how many apps you can maintain.
/ Tools and names to know
- Swift / SwiftUIApple’s language and screen toolkit for native iPhone apps.
- Kotlin / Jetpack ComposeGoogle’s recommended toolkit for native Android screens.
- FlutterGoogle’s cross-platform toolkit written in Dart.
- React NativeBuild native apps with JavaScript and React.
- Kotlin MultiplatformShare Kotlin code between Android, iOS and more.
/ Quick read
/ Deep read
- OfficialSwiftUIApple’s own introduction to building screens in SwiftUI.developer.apple.com
- OfficialJetpack ComposeGoogle’s guides for building Android screens with Compose.developer.android.com
- OfficialFlutter documentationEverything from install to release for Flutter apps.docs.flutter.dev
- OfficialKotlin MultiplatformHow to share code between Android and iOS with Kotlin.kotlinlang.org
App design
Apple’s and Google’s design rules, navigation and accessibility.
Apple and Google each publish a design guide. Apple’s is the Human Interface Guidelines. Google’s is Material Design. They explain how buttons, lists, menus and gestures are meant to look and behave on each system. Following them makes your app feel familiar, because people already know how their phone works.
Navigation is how people move around the app. Common patterns are a bar of tabs along the bottom for the main sections, a stack where each new screen slides in and a back action returns you, and sheets that slide up for a short task. Pick a simple pattern and use it the same way everywhere. The back gesture and back button work differently on iPhone and Android, so test both.
Accessibility means everyone can use the app, including people who are blind, have low vision, cannot use their hands well or are hard of hearing. Both systems have screen readers, VoiceOver on iPhone and TalkBack on Android, that read the screen aloud. Your app helps them by giving every button a clear label, letting text grow when the person picks a larger size, keeping enough contrast between text and background, and making touch targets big enough to hit.
- Read the Human Interface Guidelines for iPhone and Material Design for Android.
- Keep the main sections one tap away, often in a bottom tab bar.
- Label every icon button so a screen reader can say what it does.
- Support larger text sizes and dark mode.
- Test with VoiceOver and TalkBack turned on, not just by looking.
/ Tools and names to know
/ Quick read
/ Deep read
- OfficialApple Human Interface GuidelinesApple’s full design guide, with patterns and components.developer.apple.com
- OfficialTab bars (Apple HIG)How and when to use a bottom tab bar on Apple devices.developer.apple.com
- OfficialMaterial 3: Navigation barGoogle’s guidance for the main navigation bar.m3.material.io
- OfficialAccessibility (Apple HIG)Apple’s rules for making apps usable by everyone.developer.apple.com
- OfficialMobile accessibility at W3CHow the web accessibility standards apply to mobile apps.w3.org
Prototyping and user testing
Try the idea with real people before and while you build.
A prototype is a fake version of the app that looks real enough to try. In a design tool like Figma you draw the screens and link them, so tapping a button opens the next screen. You can put it on a phone and hand it to someone in minutes, long before any code exists. Changing a drawing is cheap; changing a finished app is not.
User testing means watching real people try to do real tasks. You give them a goal, like "book a table for Friday", and stay quiet while they try. Where they hesitate or tap the wrong thing, the design is unclear. A few people, tested often, usually show the biggest problems.
Once there is a real build, both stores let you hand it to testers before the public sees it. Apple’s TestFlight lets you invite your own team and up to 10,000 outside testers. Google Play has internal, closed and open testing tracks. New personal Google Play accounts must run a closed test with at least 12 testers for at least 14 days before they can publish to everyone.
- Prototype in a design tool first; test the flow, not just the looks.
- Watch people use it, and do not explain the screen while they try.
- Use TestFlight on iPhone and testing tracks on Google Play for real builds.
- Check the Google Play testing rule for new personal accounts early, as it adds at least two weeks.
/ Tools and names to know
/ Quick read
/ Deep read
- OfficialGuide to prototyping in FigmaHow to link screens and add interactions in Figma.help.figma.com
- ArticleWhy you only need to test with 5 users (Nielsen Norman Group)The case for many small rounds of testing.nngroup.com
- OfficialTestFlightHow to invite internal and external testers on Apple platforms.developer.apple.com
- OfficialSet up an open, closed, or internal testThe Google Play testing tracks and how to use them.support.google.com
- OfficialApp testing requirements for new personal developer accountsGoogle Play’s closed-test rule before going to production.support.google.com
The back end
APIs, logging in, push notifications and where the server lives.
Most apps need a server somewhere: a computer on the internet that stores shared data, like orders, messages or accounts. The app talks to it through an API, which is a fixed list of requests the server understands, such as "give me my orders" or "save this photo". The phone should never be the only place important data lives, because phones get lost and reset.
Authentication means proving who you are, usually with an email and code, a password, or "Sign in with Apple" or Google. Behind these sits a standard called OAuth. For apps, the safe way is to open the system’s own login page in a browser view and get a short-lived token back, which the app then sends with each request. The app should never keep the person’s password.
Push notifications are messages the server sends to the phone even when the app is closed. They do not go straight to the phone: they pass through Apple’s Push Notification service for iPhones and Firebase Cloud Messaging for Android. The person has to agree to receive them, and too many will make them turn notifications off.
You can rent a ready-made back end, like Firebase or Supabase, which gives you a database, logins, file storage and functions with little setup. Or you can run your own server and database, which gives you more control and can cost less at scale but means more work. Many teams start with a service and move parts to their own server later.
- The app is a window; the server keeps the truth.
- Log people in with a standard flow (OAuth) and short-lived tokens.
- Push goes through Apple’s and Google’s push services, never directly.
- Firebase and Supabase are ready-made options; your own server is the other path.
/ Tools and names to know
/ Quick read
/ Deep read
- PaperRFC 8252: OAuth 2.0 for Native AppsThe standard for safe login inside phone apps.datatracker.ietf.org
- OfficialFirebase Cloud MessagingHow to send push notifications with Firebase.firebase.google.com
- OfficialUser Notifications (Apple)Apple’s framework for asking permission and showing notifications.developer.apple.com
- OfficialSupabase AuthHow a Postgres-based back end handles logins.supabase.com
Security and privacy
OWASP lists, safe storage and the data laws: DPDP and GDPR.
Anyone can download your app and take it apart. So nothing secret should live inside it: no master passwords, no private API keys. Secrets belong on the server. On the phone, small secrets like login tokens go in the system’s safe storage, the Keychain on iPhone and the Keystore on Android, not in plain files.
OWASP, a non-profit security group, publishes the Mobile Top 10: the ten most common risk areas, such as misused credentials, insecure storage, weak communication and poor privacy controls. It also publishes MASVS, a checklist of what a secure app should do, grouped into storage, cryptography, authentication, network, platform, code, resilience and privacy. Teams use MASVS as a list to build against and to test.
Privacy is also the law. In India, the Digital Personal Data Protection Act, 2023 says you must get clear consent, use data only for the stated purpose, protect it, and tell people if it leaks. Its Rules were notified in November 2025 with an eighteen-month period to comply, and the penalties go up to 250 crore rupees for failing to take reasonable security safeguards. In Europe, the GDPR sets similar duties for anyone handling the data of people in the EU.
Collect only what the app truly needs, say plainly what you collect and why in a privacy policy, and know which outside code (analytics, ads, crash tools) also collects data, because the stores make you declare that too.
- Never ship secret keys inside the app.
- Use the Keychain (iOS) and Keystore (Android) for tokens.
- Use the OWASP Mobile Top 10 to spot risks and MASVS as a checklist.
- India’s DPDP Act and Europe’s GDPR both require consent, purpose limits and breach care.
- Third-party SDKs count as your data collection.
/ Tools and names to know
/ Quick read
/ Deep read
- OfficialOWASP Mobile Top 10The ten biggest mobile app risk areas, with explanations.owasp.org
- OfficialOWASP Mobile Application Security (MASVS, MASTG)The security checklist and the matching test guide.mas.owasp.org
- OfficialAndroid Keystore systemHow to keep keys safe on Android.developer.android.com
- OfficialKeychain services (Apple)How to keep small secrets safe on Apple devices.developer.apple.com
- OfficialDigital Personal Data Protection Act, 2023 (official text, MeitY)The full text of India’s law, including the penalty schedule.meity.gov.in
Building and signing
Developer accounts, certificates and keystores.
Before you can publish, you need a developer account with each store. Apple’s Developer Program costs 99 US dollars a year. Google Play asks for a one-time registration fee and checks who you are. A company should open the accounts in its own name, not a freelancer’s, so it always owns its apps.
Signing is how the phone knows an app really came from you and was not changed. It works like a wax seal. On Apple, you sign with a certificate issued by Apple, plus a provisioning profile that says which app and which devices it is for. Xcode can handle most of this for you.
On Android, you sign with a key kept in a file called a keystore. With Play App Signing, Google keeps the real app signing key safe, and you sign uploads with a separate upload key. If you lose the upload key, it can be reset; if you managed the signing key yourself and lost it, you could no longer update the app. Store keys and passwords in a password manager or secret store, never in the code.
The finished file you upload is an IPA for Apple and an Android App Bundle (AAB) for Google Play. Google then builds smaller downloads tuned to each phone.
- Open store accounts in the company’s own name.
- Apple: certificate plus provisioning profile. Android: keystore plus Play App Signing.
- Back up signing keys and passwords somewhere safe and shared with the right people.
- Upload an Android App Bundle (AAB) to Google Play.
/ Tools and names to know
/ Quick read
/ Deep read
- OfficialApple Developer ProgramWhat membership gives you and what it costs.developer.apple.com
- OfficialCertificates overview (Apple)The kinds of Apple certificates and when you need each.developer.apple.com
- OfficialSign your app (Android)Upload keys, keystores and Play App Signing explained.developer.android.com
- OfficialAbout Android App BundlesThe upload format Google Play uses.developer.android.com
Getting into the stores
Review rules, privacy forms, listings and app store optimisation.
Apple checks every app and update by hand against its App Store Review Guidelines. Google Play checks apps against its Developer Program Policies, partly by machines and partly by people. Common reasons for rejection are crashes, broken links, missing login details for the reviewer, unclear payments, and privacy problems. Read the rules before you design, not the night before launch.
Both stores make you describe your data use. Apple asks for App Privacy details, shown on the store page as a privacy label. Google asks every app to fill in the Data safety form, even if it collects nothing. Both need a link to a privacy policy, and Apple also wants that link inside the app.
The store listing is your shop window: the name, the short description, the icon, screenshots and sometimes a preview video. Each store has exact size rules for screenshots. App store optimisation, or ASO, means making that page easy to find in store search and convincing once found: clear words people would actually search for, screenshots that show the real benefit, and good ratings.
- Give the reviewer a working test login and notes on anything unusual.
- Fill in Apple’s App Privacy details and Google’s Data safety form honestly.
- Have a public privacy policy URL before you submit.
- Screenshots should show what the app does, in the sizes each store asks for.
/ Tools and names to know
/ Quick read
/ Deep read
- OfficialApp Store Review GuidelinesThe full rules Apple reviews every app against.developer.apple.com
- OfficialGoogle Play Developer Policy CenterAll of Google Play’s policies in one place.play.google
- OfficialGoogle Play Data safety sectionWhat the Data safety form asks and who must fill it in.support.google.com
- OfficialApp privacy details on the App StoreHow to answer Apple’s privacy questions.developer.apple.com
- OfficialScreenshot specifications (App Store Connect)The exact screenshot sizes Apple accepts.developer.apple.com
Release management
Versions, staged rollouts and automated builds.
Every release has a version that people see, like 2.3.0, and a build number that only goes up, used by the stores to tell builds apart. On Android these are versionName and versionCode. A common habit is semantic versioning: the first number for big changes, the second for new features, the third for fixes.
You do not have to give a new version to everyone at once. Google Play lets you roll out to a percentage of users and halt the rollout if something breaks. Apple’s phased release spreads automatic updates over seven days, and you can pause it for up to 30 days. Starting small means a bad bug hurts a few people, not all of them.
Building, signing and uploading by hand is slow and easy to get wrong. CI/CD (continuous integration and continuous delivery) means a computer does it every time code changes: it runs the tests, builds the app, signs it with keys kept in a secret store, and sends it to testers or the store. Fastlane is a popular free tool for the steps; Codemagic, Xcode Cloud and GitHub Actions are services that run them.
- The build number must go up with every upload.
- Release to a small share of users first, then widen.
- Automate builds and uploads so any team member gets the same result.
- Keep signing keys in the CI secret store, not in the repository.
/ Tools and names to know
/ Quick read
/ Deep read
- OfficialSemantic VersioningThe rules for MAJOR.MINOR.PATCH version numbers.semver.org
- OfficialVersion your app (Android)How versionCode and versionName work.developer.android.com
- OfficialRelease app updates with staged rolloutsHow to roll out, raise and halt a release on Google Play.support.google.com
- OfficialRelease a version update in phasesHow Apple’s seven-day phased release works.developer.apple.com
- OfficialContinuous delivery with FlutterSetting up automated releases, with Fastlane as an example.docs.flutter.dev
After launch
Crashes, analytics, reviews, updates and yearly OS changes.
Launch is the start, not the end. A crash reporter catches every crash on real phones and sends you the details: which screen, which phone, which line of code. Tools like Crashlytics and Sentry do this. Android vitals in Play Console and the crash reports in App Store Connect also show how stable the app is.
Analytics tell you what people actually do: which screens they open, where they give up. Only collect what helps you decide something, and declare it in the store privacy forms. Reviews are the other signal. Both stores let you reply to reviews; a calm, helpful reply often turns a one-star review around. Both also offer an in-app prompt to ask for a rating, and they limit how often it can show.
Every year Apple and Google release a new version of their systems, and the stores raise the rules. Google Play sets a minimum target version: from 31 August 2026, new apps and updates must target Android 16 (API level 36). Apple regularly requires apps to be built with newer Xcode versions. An app that is never updated will eventually be blocked from updating, or break.
If your app lets people create an account, both stores require a way to delete it. Apple wants the deletion to start inside the app. Google wants an in-app path and also a web link, so people who already removed the app can still ask.
- Set up crash reporting before launch, not after the first angry review.
- Reply to reviews; fix what several people mention.
- Plan a yearly update for the new iOS and Android versions.
- Offer account deletion in the app (both stores) and on the web (Google Play).
/ Tools and names to know
/ Quick read
/ Deep read
- OfficialAndroid vitalsThe stability and speed numbers Google Play watches.developer.android.com
- OfficialTarget API level requirements for Google PlayThe yearly rule on which Android version apps must target.developer.android.com
- OfficialOffering account deletion in your app (Apple)Apple’s account deletion rule and how to meet it.developer.apple.com
- OfficialGoogle Play’s app account deletion requirementsThe in-app and web deletion rule on Google Play.support.google.com
- OfficialRatings, reviews, and responses (Apple)How to ask for ratings and reply to reviews on the App Store.developer.apple.com
AI in mobile work
On-device or cloud AI, and AI help with the coding.
AI can live in two places. On-device AI runs on the phone itself: it works offline, answers fast, and the data never leaves the phone, but the models must be small. Apple offers Core ML and, on recent systems, a Foundation Models framework that gives apps an on-device language model. Google offers Gemini Nano on supported Android phones, and LiteRT through Google AI Edge for running your own models.
Cloud AI runs on a server: the app sends a request and gets an answer back. It can use much larger models, but it needs a connection, costs money per use, and sends data off the phone, which you must declare and protect. Never put a cloud AI key inside the app; send requests through your own server.
AI also helps the people building the app. Coding assistants can write screens, tests and build scripts, explain errors and review changes. Treat their output like a new team member’s work: read it, run the tests, and check it against the platform rules and the security list, because they can be confidently wrong.
- On-device: private, offline, fast, but smaller models.
- Cloud: bigger models, but cost, delay and data leaving the phone.
- Route cloud AI calls through your own server, never with a key in the app.
- Review every AI-written change before it ships.
/ Tools and names to know
/ Quick read
/ Deep read
- OfficialFoundation Models (Apple)Apple’s framework for its on-device language model.developer.apple.com
- OfficialCore ML (Apple)Running trained models on Apple devices.developer.apple.com
- OfficialGemini Nano (Android)Google’s on-device model on supported Android phones.developer.android.com
- OfficialAI on AndroidGoogle’s overview of on-device and cloud AI options for apps.developer.android.com
Paths through it
What each kind of reader needs, step by step.