Ionic interview questions and answers for hybrid mobile developers
Ionic interview questions test whether you can ship one web codebase as a real iOS and Android app without it feeling like a website in a frame. Expect questions on Ionic's UI components and page lifecycle, how navigation stacks keep pages alive, Capacitor and its native plugins, where the web view runs out of road, and how you would debug a crash that only happens on one device. Answers that separate the web layer from the native layer, and say which one a bug lives in, stand out.
By Evin JohnPublished 8 min read
Where Ionic questions come up
Ionic roles are often labeled hybrid mobile developer, Ionic Angular developer or frontend developer with mobile work. Agencies and enterprise teams use it to ship internal and customer apps from one codebase, so interviews mix web skills with mobile ones. Expect Angular or React questions first, which have their own page in Angular interview questions, then Ionic specifics and a few native build questions. Teams comparing approaches may also ask how Ionic differs from React Native or Flutter; the broader picture lives in mobile developer interview questions.
- Framework roundAngular, React or Vue basics, TypeScript and RxJS or hooks, depending on the stack.
- Ionic and CapacitorComponents, navigation, lifecycle, theming, plugins and the build pipeline into Xcode and Android Studio.
- Scenario or take-homeA small app with a list, a detail page and a device feature such as the camera, or a bug that only appears on Android.
Ionic fundamentals questions
| Question | What it tests | What a strong answer shows |
|---|---|---|
| What is Ionic, and what is it not? | Scope | A UI toolkit of mobile-style components plus tooling. It is not a JavaScript framework: the app logic is still Angular, React, Vue or plain JavaScript, and the native shell comes from Capacitor. |
| What is a hybrid app? | Architecture | A web app packaged in a native shell and rendered in the platform web view, with a bridge to native code for device features. It differs from React Native, which draws native widgets, and Flutter, which draws its own. |
| Why are Ionic components built as web components? | Design | Custom elements work in any framework or none, so one component library serves Angular, React and Vue through thin wrappers. |
| What are iOS and Material Design modes? | Platform styling | Ionic renders components with iOS styling on iPhones and Material styling on Android by default. You can force one mode for a consistent brand look. |
| How do you theme an Ionic app? | Styling | With CSS custom properties such as the color variables and component-level properties. Because many components use shadow DOM, ordinary selectors cannot reach inside; use the documented variables and exposed parts. |
| What is ion-content responsible for? | Layout | The scrollable area of a page, with scroll events and methods such as scrolling to the top, and correct handling of headers, footers and safe areas. |
| How do you handle the notch and home indicator? | Safe areas | Ionic's layout components respect the device safe areas, and custom elements can use the env(safe-area-inset-*) CSS values. |
| What is the role of ion-router-outlet? | Navigation | It manages a stack of pages with native-style transitions and keeps earlier pages in the DOM so going back is instant and keeps their state. |
| What does Capacitor do? | Native runtime | It creates native iOS and Android projects that host your built web assets, and provides a JavaScript API for calling native plugins such as camera, filesystem and geolocation. |
| Cordova versus Capacitor? | History | Cordova was the earlier hybrid runtime. Capacitor treats the native projects as source you commit and edit, uses npm for plugins, and can run many Cordova plugins, which eases migration. |
Lifecycle and navigation questions
- Why does ngOnInit not run when I navigate back to a page? The page was never destroyed; the outlet kept it in the stack. Use the Ionic page events, such as ionViewWillEnter, for work that must run on every visit.
- Name the Ionic page lifecycle events and when each fires. ionViewWillEnter and ionViewDidEnter around the transition into the page, ionViewWillLeave and ionViewDidLeave around leaving it. React and Vue get the same events through hooks.
- Where should a subscription be cleaned up in a stacked page? If it should pause while the page is hidden, stop it on leave and restart on enter. If it lives as long as the page, clean up when the framework destroys the component.
- How does tab navigation differ from a single stack? Each tab keeps its own history stack, so switching tabs and back preserves where the user was inside that tab.
- How do you handle the Android hardware back button? Ionic routes it through navigation by default; for custom cases, such as closing a modal first or confirming exit, register a handler with a priority.
- How would you pass data to a modal and get a result back? Pass props when creating it, dismiss with a data payload and role, and await the dismissal promise in the caller.
import { Component, inject } from "@angular/core";
import { OrdersService, Order } from "../orders.service";
@Component({ selector: "app-orders", templateUrl: "orders.page.html" })
export class OrdersPage {
private orders = inject(OrdersService);
list: Order[] = [];
// Runs every time the page is about to appear, including on "back",
// because Ionic keeps this page alive in the navigation stack.
async ionViewWillEnter() {
this.list = await this.orders.recent();
}
}Capacitor and native plugin questions
| Question | What it tests | What a strong answer shows |
|---|---|---|
| What does syncing a Capacitor project do? | Build pipeline | It copies the built web assets into the native projects and updates native dependencies for installed plugins. Forgetting it after adding a plugin is a classic cause of "plugin not implemented" errors. |
| Why are the ios and android folders committed to the repository? | Project model | Capacitor treats them as source. Permissions, icons, entitlements and native code changes live there, and they must survive across builds. |
| How does a plugin call reach native code? | Bridge | The JavaScript call is serialized across the bridge to a native method, which resolves a promise with the result. Large payloads crossing the bridge often are a performance smell. |
| How do you declare permissions for the camera or location? | Platform config | Usage descriptions in the iOS Info.plist and permission entries in the Android manifest, plus a runtime request in the app before first use. |
| When would you write a custom plugin? | Extending | When no maintained plugin covers a native SDK or device feature. You write Swift or Kotlin code, expose methods, and keep a web fallback where it makes sense. |
| How do you run a feature that only exists on devices? | Platform checks | Check whether the app is running natively before calling the plugin, and provide a browser fallback or a clear message for web builds. |
| How do you debug the web layer on a device? | Tooling | Safari Web Inspector for iOS and Chrome's remote inspection for Android attach to the web view, with Xcode and Android Studio logs for native errors. |
Performance, data and release questions
- A list of thousands of items scrolls badly. What do you do? Render only what is visible with a virtual scroll approach suited to your framework, paginate or use infinite scroll, keep each row's markup light, and avoid heavy shadows and filters in rows.
- How do you make startup feel fast? Lazy-load routes, keep the first page's bundle small, defer non-critical plugin setup, and keep the splash screen up only until the first meaningful content is ready.
- How do you store data on the device? Small preferences in a key-value plugin, structured data in SQLite through a plugin or IndexedDB, and secrets in the platform keychain or keystore through a secure storage plugin, never in plain local storage.
- How would you design offline-first sync? Write changes to a local store with a pending flag, sync in the background when the network returns, resolve conflicts with timestamps or server rules, and show the user what is not yet saved.
- Why do web view apps sometimes hit CORS errors that the browser build does not? The app is served from a local scheme and host inside the web view, so the API must allow that origin, or calls must go through a native HTTP plugin.
- How do deep links work in a Capacitor app? Universal links on iOS and app links on Android open the app, and an app URL-open listener hands the path to the router.
- How are push notifications wired? A push plugin registers with the platform service, the token goes to your backend, and listeners handle notifications received in the foreground and taps that open the app.
- What does the store release process look like? Build the web app, sync, set version and build numbers in the native projects, sign, archive in Xcode or build an Android App Bundle, and upload. Changes to native code always need a new store release.
Senior and scenario questions
- A screen works on iOS but the keyboard covers inputs on Android. Where do you look? Keyboard resize behavior in the Capacitor keyboard configuration, the Android window soft input mode, and whether the content scrolls the focused input into view.
- Should this product be built in Ionic at all? Weigh team skills, how much of the app is forms and content versus heavy animation or graphics, the native SDKs needed, and whether a shared web app is valuable. Be honest about where native or another framework fits better.
- How would you migrate an old Cordova app? Add Capacitor to the existing project, move config and plugins one by one, replace plugins with Capacitor equivalents where they exist, and test every native feature on real devices before switching builds.
- How do you keep native projects healthy across upgrades? Upgrade on a branch, follow the official migration notes, update plugins together with the runtime, and keep native changes small and documented.
- A crash happens only on some older Android phones. How do you investigate? Check the web view version on those devices, look for JavaScript features or CSS the old web view lacks, read native logs, and test on an emulator image of that Android version.
Fictional example
- Interviewer
- A user places an order on the checkout page, taps back, and the orders list does not show the new order until they restart the app. Why?
- Candidate
- The orders page loads its data in ngOnInit, which ran once when the page was first created. Ionic keeps that page in the navigation stack, so going back reveals the same instance and nothing reloads. I would move the fetch into ionViewWillEnter so it runs on every visit, and show the cached list right away while the new request is in flight. A cleaner long-term option is a shared orders store: checkout adds the new order to it, and the list page subscribes, so the update appears without another network call. I would test the fix on both platforms with slow network throttling.
Ionic practice plan
- Days 1 and 2: build a tabs app with a list and detail page in your framework of choice, then add a modal that returns a result.
- Day 3: log every Angular or React lifecycle hook alongside the Ionic page events while you navigate, and explain the order you see.
- Day 4: add Capacitor, run on a real phone, use the camera and filesystem plugins, and debug the web view with remote inspection.
- Day 5: build an offline queue for one form, then prepare answers on store releases, permissions and the Cordova migration path.
Much of an Ionic interview is ordinary web knowledge. Brush up with HTML5 interview questions for the browser APIs a web view exposes and HTTP interview questions for the networking and CORS cases that trip up hybrid apps.
Hybrid answers need you to say which layer you are talking about, web or native, and that is hard to judge in the moment. Natively, an AI interview assistant for Mac and Windows, can transcribe your mock mobile interview on your computer so you can review how clearly you separated the two. During practice it can read a stack trace or a component snippet from a screenshot and suggest next steps, and with Pro or the free trial it can use the résumé and job description you add. The transcript and notes remain for you to go over later.
Questions people ask
What Ionic questions are asked in interviews?
What Ionic is and is not, hybrid versus native apps, platform modes and theming, Ionic page lifecycle events, navigation stacks and tabs, Capacitor plugins and permissions, offline storage, deep links, push and store releases.
What is the difference between Ionic and Capacitor?
Ionic Framework provides the UI components. Capacitor is the native runtime that packages the web app into iOS and Android projects and exposes device features through plugins. They are often used together but can be used apart.
Why use ionViewWillEnter instead of ngOnInit?
Ionic keeps pages alive in the navigation stack, so ngOnInit runs only once per page instance. ionViewWillEnter runs every time the page is about to be shown, including when the user goes back to it.
Do Ionic interviews include Angular questions?
Usually, when the team builds with Ionic Angular. Teams on Ionic React or Ionic Vue ask about those frameworks instead, then move on to Ionic components and Capacitor.
Where to go next
Practice with the same assistant you would use on a call: it listens, transcribes and suggests answers from your own resume and the job description.
Facts on this page were last checked on . Product details come from the Natively app itself; if something here is out of date, tell us at hello@heynatively.com.
