Home / Insights / Mobile App Development
Mobile App Development
On-Device AI in Mobile Apps: What Apple Intelligence and Gemini Nano Mean for Private Inference
Running AI models on the phone itself promises lower latency, offline use and stronger privacy. This guide explains what Apple and Google actually offer developers today, where on-device inference fits, and how to design a hybrid that holds up across real devices.
TopicsMobile App Development
Key takeaways
- On-device AI is a placement decision, not a product feature: choose per task between device, private cloud and standard cloud based on data sensitivity, latency, model size and device coverage.
- Apple’s on-device foundation model has about 3 billion parameters, and Apple routes heavier requests to Private Cloud Compute; developer access to these platform models is still narrower than to cloud APIs.
- Gemini Nano runs through Android’s AICore, but developer access announced in October 2024 is experimental, text-only, Pixel 9 only and not for production use.
- Core ML and similar frameworks are the production-ready route today for task-specific models such as classification, vision and speech.
- Design for a mixed fleet from day one: capability detection, a cloud fallback and a feature that degrades gracefully on older phones.
On this page
- What on-device AI means and why it matters now
- What Apple and Google actually offer developers today
- Device, private cloud or standard cloud: the trade-offs
- A decision framework for each AI feature
- Implementing a hybrid design that survives real devices
- Risks, costs and governance
- Checklist before committing to on-device AI
- Frequently asked questions
- Sources and methodology
Since Apple announced Apple Intelligence in June 2024 and Google began shipping Gemini Nano on Android devices, product owners have been asking the same question: can we run our AI features on the phone instead of in the cloud? The appeal is clear. On-device inference can respond without a network round trip, works offline, avoids per-request cloud costs and keeps sensitive data on the user’s device.
This article is for CTOs, product owners and mobile leads deciding where AI features in their apps should run. As an architect, I want to separate what the platforms make available to third-party developers from what they use internally, explain the trade-offs between device, private cloud and standard cloud processing, and give a practical way to decide and implement. The short version: on-device AI is real and useful today for well-defined tasks, but most apps will need a hybrid design for some time.
What on-device AI means and why it matters now
On-device AI means the model runs on the phone’s own processors, typically using a dedicated neural accelerator alongside the CPU and GPU, rather than sending data to a server. Two developments have made this a mainstream conversation rather than a specialist one.
Capable small models
Apple’s machine learning team published details of its foundation models in June 2024. According to Apple’s research overview, the on-device language model has about 3 billion parameters and uses low-bit palletisation averaging 3.7 bits per weight, with task-specific adapters that are small enough to load and swap as needed. Google describes Gemini Nano as its “most efficient model built for on-device tasks”. Models of this size are far smaller than frontier cloud models, but they are capable enough for focused tasks such as summarising, rewriting and classifying text.
Operating-system integration
Both platforms now ship models as part of the operating system rather than inside each app. On Android, Gemini Nano runs in the AICore system service; on Apple devices, Apple Intelligence models are part of the OS. That matters for app teams because you do not have to bundle and update a multi-gigabyte model yourself, but it also means you depend on the platform’s access rules and device support.
Why decision-makers care
- Privacy and compliance: data that never leaves the device does not need a cloud processing agreement for that step.
- Latency and offline use: useful for field apps, travel, healthcare settings and poor connectivity markets.
- Running cost: on-device inference has no per-request cloud fee, though it does consume battery and device resources.
Action: list the AI features on your roadmap and mark which ones handle sensitive data, need offline use or are called many times per session. Those are your on-device candidates.
What Apple and Google actually offer developers today
It is important to distinguish the AI features the platforms build into their own apps from what a third-party app can call. As of early 2025, the gap is significant.
Apple
- Apple Intelligence system features: Apple’s foundation models power writing assistance, notification summaries and similar features. Third-party apps benefit mainly where they use standard system components (for example, standard text controls) rather than through a general-purpose API to the language model.
- Private Cloud Compute: for requests too complex for the device, Apple routes processing to its own servers. Apple’s security team describes stateless processing in which “no user data is retained in any form after the response is returned”, no privileged runtime access for staff, and published software images for independent verification. This is Apple’s infrastructure for its features, not a general hosting service for app developers.
- Core ML: the production route for your own models. Apple’s Core ML documentation states that it optimises on-device performance using the CPU, GPU and Neural Engine, and that running a model strictly on the device “removes any need for a network connection”. Models can be converted from other frameworks with Core ML Tools.
- Gemini Nano via AICore: Google’s October 2024 announcement opened experimental access through the AI Edge SDK. Initial support is text-to-text, on Pixel 9 series devices only, and access is “for development purposes, and is not for production usage at this time”.
- Privacy design: Google’s Gemini Nano documentation describes AICore as isolated from most other packages, without direct internet access, and processing each request without storing inputs or outputs afterwards.
- Your own models: as on iOS, you can run task-specific models on Android using Google’s on-device ML tooling, independently of Gemini Nano.
| Option | Production-ready for third-party apps? | Best suited to | Main constraint |
|---|---|---|---|
| Apple Intelligence system features | Indirectly, through system components | Writing assistance in standard text fields | Limited control; supported devices only |
| Core ML with your own model | Yes | Classification, vision, speech, small task models | You build, convert and maintain the model |
| Gemini Nano via AI Edge SDK | No, experimental | Prototyping summarise, rewrite, smart reply | Pixel 9 only, text only, not for production |
| Your own model on Android | Yes | Same as Core ML | Device fragmentation and testing effort |
| Cloud LLM API | Yes | Open-ended generation, large context, complex reasoning | Data leaves the device; per-request cost |
Action: before promising an on-device generative feature to stakeholders, confirm which access route you would use and whether it is production-ready on the devices your users actually own.
Device, private cloud or standard cloud: the trade-offs
Placement is a per-feature decision. A single app can run a vision model on the device, a summary on the device where supported, and a complex assistant in the cloud.
| Factor | On-device | Cloud API |
|---|---|---|
| Latency | No network round trip; depends on device speed | Network dependent; consistent on server hardware |
| Offline | Works | Does not work |
| Data exposure | Data stays on the device for that step | Data sent to a provider under contract |
| Model capability | Small models, focused tasks | Large models, broad tasks, long context |
| Device coverage | Only capable, recent devices | Any device with a connection |
| Running cost | No per-request fee; battery and thermal cost | Per-request or per-token fees |
| Updating the model | Tied to OS or app updates | Change on the server at any time |
| Observability | Harder to monitor quality in the field | Easier to log, evaluate and improve |
The privacy argument, stated carefully
On-device processing reduces exposure, but it does not remove privacy obligations. You still need to explain what the feature does, handle outputs that are stored or synced, and avoid sending the same data to analytics or crash reporting. Equally, a well-governed cloud provider with a clear data processing agreement can be acceptable for many use cases. The question is which data is involved and what your users and regulators expect.
Quality monitoring is harder on the device
With a cloud model you can log prompts and outputs (with consent) to evaluate quality. On the device, you generally cannot see what the model produced unless the user reports it. Plan explicit feedback mechanisms and test sets that you run on real devices before each release.
Our article on choosing where a computer vision model runs explores the same placement question for image workloads.
Action: for each AI feature, fill in the table above and agree with product and legal stakeholders which column matters most.
A decision framework for each AI feature
Work through these questions in order. The first one that produces a firm answer usually decides the placement.
- Must the feature work offline? If yes, it must run on the device, so scope it to what a small model can do reliably.
- Is the data highly sensitive? Health notes, financial details or children’s data push towards on-device processing, or a cloud route with strict contractual and technical controls.
- Does the task need broad knowledge or long context? Open-ended chat, multi-document reasoning and complex generation generally need a cloud model.
- What share of your users have capable devices? Check your analytics. If a feature only works on the newest flagships, you need a fallback for everyone else.
- Is the access route production-ready? Experimental SDKs are for prototyping, not for features customers depend on.
- How often is it called? High-frequency, low-complexity calls (classification, short suggestions) are where on-device inference saves the most cloud cost.
Typical outcomes
| Feature type | Likely placement |
|---|---|
| Image classification, document edge detection, barcode or text recognition | On-device with your own model |
| Speech-to-text for short notes | On-device where supported, cloud fallback |
| Rewrite or summarise a short message | Prototype on-device; cloud in production for now |
| Conversational assistant over company knowledge | Cloud, with retrieval and access control |
| Personal recommendations from on-phone behaviour | On-device model or on-device features sent in aggregated form |
For example, a field inspection app for a facilities company might classify photos of equipment on the device so inspectors can work in basements without signal, then sync the results and generate a written report in the cloud once connected. This is an illustrative pattern; the split follows the offline requirement, not a preference for one technology.
Action: run each roadmap feature through the six questions and record the placement and the reason in your architecture decisions.
Implementing a hybrid design that survives real devices
Most production apps will combine on-device and cloud inference. The engineering challenge is making that invisible to users.
Architecture pattern
- Capability detection: at runtime, check whether the device supports the on-device route (OS version, model availability, hardware).
- An inference interface in your code: features call one internal interface; behind it, an on-device implementation and a cloud implementation share the same input and output contract.
- Routing rules: decide per request based on capability, connectivity, data sensitivity flags and user settings.
- Graceful degradation: if neither route is available, the feature should explain itself and offer a manual path rather than fail silently.
- Consistent evaluation: one test set, run against both implementations, so you know how much quality differs.
Shipping your own models
- Prefer small, task-specific models over general ones; they are faster, more predictable and easier to test.
- Use quantisation and compression to reduce app size and memory; measure accuracy after each step.
- Consider downloading models after install rather than bundling them, to keep the initial download small. Core ML supports downloading and compiling a model on the user’s device at runtime.
- Version models separately from app code so you can roll back.
Cross-platform frameworks
If your app is built in React Native or Flutter, on-device inference generally requires native modules for each platform. Budget for this native work and for testing on both platforms; our guide to choosing between native and cross-platform covers the wider trade-off.
Testing on a device matrix
Define a matrix covering your most common devices, a low-end Android device, the oldest supported iPhone and at least one device that lacks on-device AI support. Measure latency, memory, battery drain during repeated use and thermal throttling, not just output quality.
Action: build the inference interface and the cloud implementation first; add the on-device implementation behind it once it is proven on your device matrix.
Risks, costs and governance
Where the costs move
On-device inference shifts cost rather than removing it. You save per-request cloud fees, but you spend more on model optimisation, native integration, device testing and dual implementations. For low-volume features, a cloud API is usually cheaper overall. For high-volume, simple tasks, on-device can pay back.
Risks to plan for
- Platform dependency: OS-provided models and their access rules can change with each major OS release. Keep your inference interface abstract so you can switch routes.
- Fragmented support: on Android especially, availability varies by manufacturer, model and region.
- Silent quality differences: a feature that behaves differently on two phones generates confusing support tickets. Log which route served each request (without logging the content).
- Security of bundled models: models shipped in the app can be extracted. Core ML supports model encryption; treat proprietary models as intellectual property worth protecting.
- Safety and accuracy: small models make mistakes. Keep humans in the loop for consequential outputs, and make it easy to correct or discard suggestions.
Governance
- Document, for each AI feature, where it runs and which data it touches; this is what privacy reviews and enterprise customers will ask for.
- Update your privacy notice and app store privacy disclosures to reflect the cloud fallback, not only the on-device path.
- Set a review point at each major OS release to reassess what the platforms now allow.
Action: add on-device AI to your architecture risk register with an owner, and schedule a reassessment after each annual platform developer conference.
Checklist before committing to on-device AI
- Each AI feature has a documented placement (device, cloud or hybrid) and the reason
- The access route for on-device features is production-ready, not experimental
- Analytics confirm what share of users have capable devices
- A cloud fallback or manual path exists for unsupported devices
- A single inference interface hides the route from feature code
- One evaluation set is run against every implementation before release
- A device test matrix covers latency, memory, battery and thermal behaviour
- Bundled models are compressed, versioned and, where proprietary, encrypted
- Privacy notices and store disclosures describe both on-device and cloud processing
- A reassessment is scheduled after each major OS release
If you are adding AI to an app that is already live, our article on adding AI features to an existing web or mobile application covers integration and rollout. Our mobile development team builds native iOS and Android apps in Swift and Kotlin as well as cross-platform apps in React Native and Flutter, including the backends, offline sync and device testing that a hybrid AI design depends on.
Frequently asked questions
Can our app call Apple’s on-device language model directly?
As of early 2025, third-party apps mainly benefit from Apple Intelligence through system features and standard components rather than a general-purpose API to the model. For your own on-device AI on iOS, Core ML with a task-specific model is the production route.
Is Gemini Nano ready for production Android features?
Not for third-party apps yet. Google’s October 2024 experimental access is text-only, limited to Pixel 9 series devices and explicitly not for production use. It is a good way to prototype and assess quality.
Does on-device AI remove our privacy obligations?
No. It reduces data exposure for the processing step, but you still need clear disclosures, careful handling of stored or synced outputs, and controls on analytics and crash logs. Any cloud fallback also needs its own data processing terms.
Will on-device AI reduce our running costs?
It removes per-request cloud fees for the requests it handles, but adds engineering, testing and maintenance cost. It tends to pay off for high-volume, simple tasks rather than occasional complex ones.
What happens for users with older phones?
They need a fallback, usually the cloud implementation of the same feature, or a manual path. Design for a mixed device fleet from the start rather than adding fallbacks after launch.
Sources and methodology
Guidance reflects PoliteTech delivery experience. The external references below informed specific points in this article.
- Apple Machine Learning Research: Introducing Apple’s On-Device and Server Foundation Models (June 2024) — accessed 9 November 2026. On-device model of about 3 billion parameters, 3.7 bits per weight palletisation, adapters, and privacy approach
- Apple Security Research: Private Cloud Compute (June 2024) — accessed 9 November 2026. Preference for on-device processing, stateless cloud processing and verifiable transparency guarantees
- Apple Developer: Core ML documentation — accessed 9 November 2026. On-device execution across CPU, GPU and Neural Engine, no network requirement, model conversion, runtime download and model encryption
- Android Developers Blog: Gemini Nano experimental access (October 2024) — accessed 9 November 2026. Experimental, text-only access via the AI Edge SDK on Pixel 9 series, not for production
- Android Developers: Gemini Nano — accessed 9 November 2026. AICore architecture and privacy design: isolation, no direct internet access, no stored inputs or outputs
Related reading
Continue your research
Which of your app’s AI features should run on the device, and which in the cloud?
We can review your roadmap, your users’ devices and your data constraints, then design and build a hybrid AI architecture for iOS and Android.
