Capacitor 9 is out: Cordova goes opt-in, R8 turns on, and your safe-area CSS may quietly break

Capacitor 9 is out: Cordova goes opt-in, R8 turns on, and your safe-area CSS may quietly break

Ionic declared Capacitor 9.0.0 generally available on November 30, 2026, five days after 9.0.0-rc.1. The final tag itself is small: two bug fixes on top of the release candidate (iOS CAPPlugin listener methods can now be overridden, and SystemBars no longer chokes on a non-numeric WebView versionName). The real weight is in the major-version changes that piled up on the way to 9.0.

The headline change is Cordova. The compatibility layer is now only included when your project has a Cordova plugin installed, and npx cap sync adds the Cordova runtime only if it finds one. If your native code calls Cordova compatibility APIs without any Cordova plugin present, you need to set forceCordovaInclusion to true. The rest of the list: iOS projects now boot through SwiftUI instead of the old AppDelegate path, Capacitor ships only through Swift Package Manager (no more XCFramework), R8 is on by default for Android release builds, Node 24 is the new minimum, and the SystemBars insetsHandling default moves from 'css' to 'native'. That last one means Capacitor stops injecting the --safe-area-inset-* CSS variables. You upgrade with npm i -D @capacitor/cli@latest and then npx cap migrate, which takes care of most of it for you.

The CSS change will probably bite first

My honest guess: most teams will get through the native parts fine and get caught by the safe-area change. Here's why. If your stylesheets use var(--safe-area-inset-top) and that variable is no longer set, nothing fails. No build error, no console warning. Your header just slides under the status bar or the notch, and you find out on a real device. Or a user finds out for you.

Capacitor gives you two ways out. Switch to env(safe-area-inset-*), or set insetsHandling to 'css' and keep the old behaviour. Before you pick, find out how exposed you are. This takes ten seconds:

grep -rn "safe-area-inset" src/

We'd move to env() in the long run. It's what the WebView already provides, and every bit of layout behaviour you hand to the framework is one more thing that can change under you in the next major. But if you have a large design system, set 'css' to get the upgrade out the door and do the CSS migration as its own pull request. Mixing a framework upgrade and a layout rewrite in one release makes regressions miserable to track down. We learned that one the hard way on a web app that later got wrapped for mobile.

R8 by default: smaller builds, new ways to break

R8 shrinks and obfuscates your Android release build. That's good for app size and it makes casual reverse engineering more annoying. It also removes or renames code it thinks nobody uses, and anything that relies on reflection (some JSON serialization setups, some third-party SDKs) can break. Only in release builds. Your debug build keeps working, so a QA pass on debug builds won't catch it.

The catch is that cap migrate turns R8 on for existing apps too, not just new ones. So the first release build after the upgrade is a different binary in ways your usual testing won't show. In our native Android projects, we treat the first R8-enabled build as its own test cycle: signed release APK, real device, every screen that parses API responses. If you're stuck before a deadline, setting minifyEnabled false in the release build type turns it off. Just don't let that become permanent.

A note from the security side. During our mobile pentesting engagements, decompiling the APK is usually the first thing we do, and readable class names make that job easier. R8 helps a bit there. It does not hide hardcoded API keys or secrets in strings, so don't read it as a security feature.

iOS: SwiftUI entry point, SPM only, and CocoaPods trunk freezes tomorrow

The timing here is tight. CocoaPods trunk is expected to go read-only on December 2, 2026. That's tomorrow. Ionic recommends moving Capacitor iOS projects to Swift Package Manager and plans to drop CocoaPods support in future versions. Capacitor 9 itself is already SPM-only, and if you maintain your own plugins, your Package.swift has to point at the new Capacitor package.

The new SwiftUI entry point is rewired by cap migrate automatically. I'd still read that diff line by line. In our native iOS work, especially healthcare and IoT apps, the AppDelegate is where all the custom setup piles up: push notification handlers, deep link routing, SDK initialisation that someone added three years ago and nobody remembers. Automated migrations are great until they meet code that was never written with them in mind. Check that every bit of that setup still runs.

Node 24 will break your CI before it breaks your app

The 9.0.0 CLI refuses to run on older Node and exits with "The Capacitor CLI requires NodeJS >=24.0.0". From our Docker work, most CI pipelines pin a Node base image, often an older one. Bump the image (and your .nvmrc, if you use one) in the same branch as the upgrade, or your first pipeline run fails before it does anything useful.

Cordova going opt-in is the right call

I like this change. Lots of Capacitor apps still carry Cordova plugins from the early days, and plenty of teams couldn't tell you which ones are still in use. After upgrading, run npx cap sync and check whether the Cordova runtime gets pulled in. If it does, ask why. Every Cordova plugin is older third-party code with native access, and in pentests that's a common place to find problems. Removing one you don't need makes the app smaller and gives an attacker one less thing to poke at.

My one reservation about the release as a whole: it's a lot of quiet default changes at once. Nothing here is hard on its own, but together they add up to an app that behaves differently even though nobody touched the product code. Don't do this upgrade the week before a store release.

What we'd do this week

  1. Move CI and local machines to Node 24.
  2. Grep for safe-area-inset and decide between env() and insetsHandling: 'css'.
  3. On a branch, run npm i -D @capacitor/cli@latest and npx cap migrate, then read the whole diff, AppDelegate changes included.
  4. Build a signed Android release with R8 and test it on a real device.
  5. Check whether Cordova still gets bundled. Set forceCordovaInclusion only if your native code really calls Cordova APIs without a Cordova plugin.
  6. If your iOS project still uses CocoaPods, plan the move to SPM now.

We've done framework upgrades like this across a lot of cross-platform and native mobile projects, and some of them are written up in our portfolio. The pattern is always the same: the release notes are short, and the surprises are in the defaults.

If an old Capacitor app full of Cordova plugins and hand-edited AppDelegate code sounds familiar, let's talk.

androidcapacitorcross-platform-mobileexpert-analysisiostech-news