How to Get the Carrier Name in Your Expo App

DavidDavid November 19, 2026 7 min read
A blank smartphone on a slate surface next to a SIM card tray, loose SIM cards, a small brass antenna and a coil of copper wire in cool blue light
Original image, App Store Launch Club

How to get the carrier name in your Expo app, in short

Run npx expo install expo-cellular, import * as Cellular from 'expo-cellular', and call await Cellular.getCarrierNameAsync(). On an Android phone with a ready SIM card, that returns the name of the user's home carrier, such as "T-Mobile" or "Verizon". On iOS and on the web it returns null every time, no matter what you do. If your app is iPhone first, that one fact decides the whole design, so it is worth knowing before you write a line of code.

expo-cellular at a glance (SDK 58)

QuestionAnswer
Installnpx expo install expo-cellular (58.0.x on SDK 58)
Works in Expo Go?Yes, it is included
Carrier namegetCarrierNameAsync(), Android only, null on iOS and web
Carrier country and codesgetIsoCountryCodeAsync(), getMobileCountryCodeAsync(), getMobileNetworkCodeAsync(), all Android only
2G, 3G, 4G or 5GgetCellularGenerationAsync(), Android, iOS and web
Android permissionREAD_PHONE_STATE
iOS permissionNone

Why the carrier name is null on iOS

On iOS, carrier details came from a system class called CTCarrier. Apple deprecated it in iOS 16 with no replacement, and its carrierName property is marked to return "--" at some point in the future. expo-cellular reflects that: the carrier name, ISO country code, MCC and MNC all return null on iOS. There is no permission, entitlement or config option that brings them back, so do not let anyone, human or AI, spend an afternoon looking for one.

What each expo-cellular call returns, by platform

expo-cellular methods

MethodAndroidiOS and webNotes
getCarrierNameAsync()Home carrier name, e.g. "Verizon"nullOnly when the SIM is ready, otherwise null. With dual SIM, only the active SIM's carrier
getIsoCountryCodeAsync()Carrier country, e.g. "us" or "au"nullLowercase two-letter code
getMobileCountryCodeAsync()MCC, e.g. "310"nullOnly when the SIM is ready. null with no SIM or no service
getMobileNetworkCodeAsync()MNCnullOnly when the SIM is ready. null with no SIM or no service
getCellularGenerationAsync()CellularGeneration valueCellularGeneration valueNeeds the phone state permission on Android, otherwise UNKNOWN. On web it uses the browser's estimate of the connection

Every one of the Android-only values can still be null on Android: no SIM, a SIM that is not ready yet, or no service. Treat all four as "nice to have when present" and write the fallback first.

Step 1: Install expo-cellular and add the Android permission

Run npx expo install expo-cellular so the version matches your SDK. Then add the permission to app.json under expo.android.permissions: "android.permission.READ_PHONE_STATE". This is read-only access to phone state. expo-cellular does not need the more sensitive READ_PRIVILEGED_PHONE_STATE, so do not let a prompt or a Stack Overflow answer add it.

Adding a permission to app.json changes the native app, so it needs a new build, not an over-the-air update. iOS needs nothing: there is no usage description to write and no prompt for the user.

Step 2: Ask for the permission on Android, then read the values

On Android, check and request the permission before you read the generation. The usePermissions() hook does both: const [status, requestPermission] = Cellular.usePermissions(). Outside components, use getPermissionsAsync() and requestPermissionsAsync(). If the user says no, getCellularGenerationAsync() does not throw, it resolves to CellularGeneration.UNKNOWN, so your code must handle UNKNOWN as a normal answer.

CellularGeneration values

ValueNumberMeans
UNKNOWN0Not on a cellular network, or the type could not be determined
CELLULAR_2G12G, including CDMA, EDGE, GPRS and IDEN
CELLULAR_3G23G, including EHRPD, EVDO and the HSPA family
CELLULAR_4G34G, including LTE
CELLULAR_5G45G, including NR and NRNSA

Note that UNKNOWN covers "on Wi-Fi" too. If you need to know whether the user is on cellular at all, ask expo-network: its type field returns CELLULAR or WIFI on both Android and iOS. Use expo-cellular only for the follow-up question of which generation.

What to actually build with it

Because the carrier fields are Android only, the useful iPhone feature in this package is the generation. Here is how I would use each value in an indie app:

  • Big downloads: if expo-network says cellular and the generation is 2G or 3G, warn before downloading a large video or asset pack, and offer to wait for Wi-Fi.
  • Media quality: start lower-quality video or images on 2G and 3G instead of letting the first screen stall.
  • Support logs: attach the carrier name and generation to bug reports on Android. It helps you spot a problem that only happens on one network.
  • Country features: do not use the carrier country. It is Android only and says nothing about where the user lives. Use the region from expo-localization, which works on both platforms.
  • Analytics: if you log the carrier, log it as optional. A dashboard split by carrier will be almost entirely Android users, which is easy to misread.

Have Claude Code build it for you

Open your project in the Claude Code desktop app and describe the result you want, with the platform limits spelled out so the code does not assume an iPhone carrier name exists:

Then add a line to your CLAUDE.md such as "Carrier fields: Android only, always nullable, never required" so later sessions do not build a feature on top of them.

The short version

To get the carrier name in your Expo app, install expo-cellular and call getCarrierNameAsync(). It works on Android when the SIM is ready and returns null on iOS and web, because Apple deprecated its carrier API with no replacement. The generation from getCellularGenerationAsync() works everywhere, needs READ_PHONE_STATE plus a runtime permission on Android, and treats denied as UNKNOWN. Design for null first, and pair it with expo-network to know whether the user is on cellular at all.

If you are building your first iOS app with Claude Code and Expo and want a second set of eyes before App Review, bring it to App Store Launch Club. Members share their builds and help each other get unstuck, and the curriculum covers the full path from first build to first users. Pair this with our guides to checking the network connection in your Expo app, getting device info in your Expo app and reducing your Expo app's size before you submit it. Join at applaunchclub.co for $9 a month.

Free app-building tips, straight to your inbox

Short, practical drops on app ideas, validating fast, store listings, and passing app review. No spam, unsubscribe anytime.

Frequently asked questions

How do I get the carrier name in an Expo app?

Install expo-cellular with npx expo install expo-cellular and call await Cellular.getCarrierNameAsync(). It returns the user's home carrier name on Android when the SIM is ready, and null otherwise.

Why does getCarrierNameAsync return null on iPhone?

Apple deprecated its carrier API, CTCarrier, in iOS 16 with no replacement. expo-cellular returns null for the carrier name, ISO country code, MCC and MNC on iOS, and there is no permission or setting that changes that.

Does expo-cellular work in Expo Go?

Yes. expo-cellular is included in Expo Go. For a production Android build you still need READ_PHONE_STATE in app.json, which takes a new build to apply.

What permissions does expo-cellular need?

On Android, add READ_PHONE_STATE to expo.android.permissions in app.json and request it at runtime with usePermissions() or requestPermissionsAsync(). iOS needs no permission. It does not need READ_PRIVILEGED_PHONE_STATE.

How do I check if the user is on 4G or 5G in Expo?

Call getCellularGenerationAsync() from expo-cellular. It returns CELLULAR_2G, CELLULAR_3G, CELLULAR_4G, CELLULAR_5G or UNKNOWN, on Android, iOS and web. On Android, a denied permission also returns UNKNOWN.

How do I know if the user is on cellular or Wi-Fi in Expo?

Use expo-network rather than expo-cellular. Its network state type returns CELLULAR or WIFI on Android and iOS. expo-cellular's UNKNOWN value covers Wi-Fi too, so it cannot tell the two apart on its own.

Last reviewed by David on November 19, 2026

David

Written by

David

Founder and app builder

Keep reading

ExpoClaude Code

How to Add Notification Actions to Your Expo App

To add notification actions to an Expo app, register a category with Notifications.setNotificationCategoryAsync, give it action buttons (and optionally a text reply), set categoryIdentifier on the notification, then read response.actionIdentifier in a response listener. Here is every action option, how to handle taps when the app was closed, the Android and iOS differences, and a Claude Code prompt that wires it all up.

David 8 min
Read article
ExpoClaude Code

How to Schedule Local Notifications in Your Expo App

To schedule local notifications in an Expo app, install expo-notifications, set a notification handler, ask for permission, create an Android channel, then call scheduleNotificationAsync with your content and a trigger like DAILY, WEEKLY or DATE. Here is every trigger type, how to cancel and list what is scheduled, why Android reminders arrive late, and a Claude Code prompt that builds the whole reminder flow.

David 8 min
Read article

Ready to build it yourself?

Join App Store Launch Club, the #1 community for building and launching apps, for $9/month.

← Back to the blog