# Connect a store app

Add your Apple App Store or Google Play app to a project. A connected store app gets its own SDK key, product import and purchase history.

## Apps & API keys

Open Apps & API keys in the sidebar. The table lists every store app of the selected project with its logo and name, store App ID, bundle or package ID and masked public SDK key. The Test Store entry sits on the same page.

> **One platform per store app**
> Each store app is either iOS or Android. A project can hold several iOS apps and several Android apps, each with its own identifiers, credentials and SDK key.

## Add a store app

1. Choose Add app, then Apple App Store or Google Play.
2. Fill in the app information: name, bundle ID or package name, and the store App ID.
3. Add the store credentials for that platform (see the two guides below).
4. Save. The app opens on its own settings page with identifiers, credential status, connection status, products and SDK key controls.

- [Apple API keys](https://aplyna.com/docs/apple-keys): In-App Purchase key and App Store Connect API key.
- [Google Play service account](https://aplyna.com/docs/google-play): Create the service account and upload its JSON key.

## What happens after connection

| Step | What Aplyna does |
| --- | --- |
| SDK key | Issues one public SDK key bound to that store app as soon as the connection succeeds. |
| Purchase history | A validated Apple connection with an In-App Purchase key starts production and sandbox history imports in the background. |
| App icon | Fetches the published App Store icon automatically when the App Store ID and bundle ID match. Admins can refresh it by hand. |
| Products | Nothing is imported automatically. You choose which store products to import in Product catalog. |

- [SDK keys](https://aplyna.com/docs/sdk-keys): Reveal, copy, revoke and replace keys.
- [Purchase history import](https://aplyna.com/docs/store-history): Coverage, progress and limits.
- [Import store products](https://aplyna.com/docs/import-products): Pick the products to add to your catalog.

## Test Store

Test Store lets you build and test a catalog before a real store is connected. Its key can fetch the test catalog and send SDK events. It cannot validate purchases, grant entitlements or simulate a sandbox subscription.

- [Sandbox testing](https://aplyna.com/docs/sandbox-testing): Test Store, Sandbox data and store sandboxes.
