# Product analytics for Android, iOS and Flutter apps

Open-source product analytics for mobile apps with the Pug Android, iOS, and Flutter SDKs: lifecycle and screen tracking, retention, funnels, identity.

Source: https://pug.sh/use-cases/mobile-apps

Pug ships three mobile SDKs today: native Kotlin for Android, native Swift for iOS, and Flutter for cross-platform apps. Initialise once and auto-tracking begins. A React Native SDK is in active development.

## Android, iOS and Flutter, auto-tracking

One init call starts lifecycle and install tracking. Screen views come from each Android activity, each iOS view controller, or a route observer in Flutter, and typed methods cover the well-known events.

## Retention that fits apps

Cohort retention is the mobile metric that matters. Group by install week and watch how many users return, filtered by device, version, or any trait.

## Onboarding funnels

Measure the first-run flow step by step (permission prompt, account creation, first action), and see where new installs drop.

## One profile across sessions

identify() ties events to a person across sessions and devices, so a user’s mobile and web activity land on a single timeline.

## Shipping today: Android, iOS and Flutter

A native Android app adds the Kotlin SDK, which runs from Java too; a native iOS app adds the Swift package through Swift Package Manager, for iOS 15 and later; a Flutter app adds the Dart SDK. All three initialise in one call, track lifecycle and installs on their own, and expose typed methods for the well-known events, over the same insight types you’d get on the web.

## Coming for React Native

A React Native SDK is in active development, on the same event and identity model, so its events will join the same profiles as your Android, iOS, Flutter, and web events.

Built on well-known events like `app_open`, `signup`, `purchase`. [Generate a tracking plan](https://pug.sh/tools/event-tracking-plan-generator).

[What to measure in a mobile app](https://pug.sh/learn/product-analytics-for-mobile-apps)

## Common questions

### Which mobile platforms does Pug support today?

Native Android, native iOS, and Flutter ship now, three of Pug’s seven SDKs. Neither native SDK has a cookieless mode (consent is granted by default) or push. A React Native SDK is in active development; until it ships, a React Native app can send events to the same backend over the HTTP API.

### Does the mobile SDK autocapture?

All three mobile SDKs track app lifecycle and installs from init(). Android also records a screen view for each activity and iOS one for each view controller, while Flutter takes them from a route observer. SwiftUI views are not view controllers, so an iOS screen built in SwiftUI counts once you name it with .pugScreen("Products"). Typed methods cover the well-known events, plus custom track() calls, so you get useful data without instrumenting everything by hand.

### Can mobile and web events share a profile?

Yes. Call identify() with a stable user id and Pug merges that person’s activity across devices and platforms into one unified profile.

### What does Pug Cloud cost for an app?

Every app_open, screen_view, and event you track counts as one event. The first 100k events every month are free, with 1 year of history. Past that, the Pay as you go plan is $1 a month plus $20 per million events, falling in steps to $10 per million past 100M, and keeps 5 years of history. Each step bills only the events inside it, so a month of 1M events costs $19.00 and a month of 10M costs $167.00.
