# Link your Android app to your iPhone app

> Have an Agent add your Android app's package name and certificate fingerprints to your iPhone app in App Store Connect, for Apple's data transfer from Android, and change or remove them later.

Source: https://air.build/docs/app-store/link-your-android-app-to-your-iphone-app/

An Android-to-iOS app mapping tells Apple which Android app is the same app as your iPhone app. It holds two things: the Android app's package name and the SHA-256 fingerprints of the certificate the Android app is signed with.

Apple uses it for OS data transfer. Apple's page [Set up OS data transfer](https://developer.apple.com/help/app-store-connect/manage-your-team/set-up-os-data-transfer) says that when someone moves from an Android phone to an iPhone, the Android phone gives iOS a list of its installed apps, and Apple matches that list against the mappings so those apps come over. The same page says:

- The iPhone app also has to support data migration, with Apple's [AppMigrationKit](https://developer.apple.com/documentation/appmigrationkit).
- The transfer works for your app only when it's set up both in App Store Connect and with Google. This page doesn't cover Google's side.
- Each iPhone app can map to only one Android app from Google Play, and can have up to 5 app ID mappings.
- People need iOS 26.3 or later, and a version of Android that also supports OS data transfer.

> [!NOTE]
> AirBuild has no screen for this. You ask an Agent in the Project's chat, and it uses `asc android-ios-mapping` (listed in [asc: apps and App Store listing](https://air.build/docs/cli/asc-apps/#android-ios-mapping)). You can also set it up yourself in App Store Connect on the web, as Apple's page shows.

## What you need

- An App Store Connect record for the iPhone app: the mapping belongs to it. See [Create your app's App Store Connect record](https://air.build/docs/app-store/create-your-app-record/).
- The Android app's package name, for example `com.example.app`.
- The SHA-256 certificate fingerprint of the Android app's signing key certificate, which Apple's page asks for. You can give up to 5, for example when the app's key has changed.

For an app on Google Play, give the SHA-256 fingerprint of the app signing key shown on Google Play Console's App signing page: copies installed from Google Play are signed with that key. If your Project builds the app in AirBuild, `android-key status` shows the fingerprint of the key AirBuild signs with, which is the upload key for Google Play and matches only the builds AirBuild makes (the Preview build and the APK you download). Give it as well if people install those. See [android-key](https://air.build/docs/cli/android-key/#output) and [Make an Android or PocketJS version (beta)](https://air.build/docs/build/android-and-pocketjs/#choose-the-apps-upload-key-for-google-play).

## Link the apps

Ask in the Project's chat, for example:

```text
Link our Android app com.example.app to this iPhone app for OS data transfer. Its signing certificate's SHA-256 fingerprint is <fingerprint>.
```

1. If you didn't give the fingerprint, the Agent asks you for the app signing key's from Google Play Console, and can add the upload key's from `android-key status`.
2. The Agent creates the mapping with `asc android-ios-mapping create`, giving the package name (`--android-package-name`) and the fingerprints (`--fingerprints`).
3. It tells you the mapping was created, with its package name and fingerprints.

Then ask an Agent to add data migration to the iPhone app with AppMigrationKit, if it doesn't have it yet, and ship it in the next version. See [Ship an update to your app](https://air.build/docs/app-store/ship-an-update/).

## Check, change or remove the link

| Ask for | The Agent uses |
| --- | --- |
| The mappings the app has | `asc android-ios-mapping list` |
| A new package name | `asc android-ios-mapping update --android-package-name` |
| Other fingerprints | `asc android-ios-mapping update --fingerprints`. The fingerprints it gives replace the ones the mapping had, so name every one that should stay. |
| No mapping at all | `asc android-ios-mapping delete` |

`asc` deletes a mapping only with `--confirm`, so the Agent asks you first. Deleting removes the link between the two apps; to link them again, the Agent creates a new mapping.

## Questions

**Does this move my users' data on its own?**

No. The mapping tells Apple which apps go together. Apple's page says the iPhone app also has to support data migration with AppMigrationKit. Ask an Agent to add it to the app.

**Can one iPhone app link to more than one Android app?**

Yes. Apple's page [Set up OS data transfer](https://developer.apple.com/help/app-store-connect/manage-your-team/set-up-os-data-transfer) says an iPhone app can have up to 5 app ID mappings, but can map to only one Android app from Google Play. `asc android-ios-mapping list` shows every mapping an app has.

**The Android app isn't built in AirBuild.**

Give the Agent the package name and the fingerprint yourself. For an app on Google Play, that's the app signing key's fingerprint from Google Play Console's App signing page.

**Where do I see the mapping in App Store Connect?**

Apple's page shows it under Users and Access, in Integrations. Or ask an Agent to list the app's mappings.

**The Agent says --fingerprints is required.**

A mapping needs at least one fingerprint. Give the Agent the app signing key's fingerprint from Google Play Console; the upload key's from `android-key status` can go with it.
