App Store and Google Play Integrations
Connect your organization’s App Store Connect and Google Play accounts, and Shorebird marks each release that’s live in a store as Production on the app’s Releases page. You can also mark releases yourself, with or without a store connected.
What Shorebird reads
Section titled “What Shorebird reads”Shorebird uses each store’s key to read only, never to change anything in the store. It doesn’t upload builds, submit for review, publish, change a rollout or edit store listings.
- App Store Connect: the app’s builds and the App Store version each build is attached to, which says whether a version is processing, on TestFlight, in review, approved, live or replaced.
- Google Play: the releases on the app’s production track and their state: draft, in review, approved, rejected or published. Google Play doesn’t report testing tracks, so Shorebird doesn’t read them. Shorebird never opens an edit through the Google Play API, so it can’t interfere with uploads your own tools make with the same service account.
Shorebird finds the app in each store by the bundle ID or package name of the
app’s latest release. It matches each release by its version, which needs a
build number: the number after the +, such as 7 in 1.2.0+7. The App Store
matches the whole version, and Google Play the build number (the version code).
A release without a build number can’t be matched.
Shorebird checks the stores every 15 minutes. An app with a release on its way to users, such as one in review, is checked on each run, and other apps once a day. A change in the store can take that long to show in the console: up to 15 minutes while a release is on its way, and up to a day otherwise.
Open the Integrations page
Section titled “Open the Integrations page”Only the organization’s Admins and Owner can add or remove store keys. In the
Shorebird console, open
https://console.shorebird.dev/orgs/<org-id>/settings/integrations, using the
organization’s ID from its console address. The page has a card for each store.
API keys can’t add or remove store keys; do it signed in to the console.
Connect App Store Connect
Section titled “Connect App Store Connect”You need the Account Holder or Admin role in App Store Connect to generate a team API key.
- In App Store Connect, open Users and Access, then Integrations, then App Store Connect API, and choose Team Keys.
- Generate a key with the App Manager role. A key with a lower role can’t read your team’s builds, and Apple refuses it.
- Download the private key, a
.p8file. Apple lets you download it only once, when the key is created. - Note the Issuer ID, shown above the list of team keys, and the key’s Key ID, shown beside it.
- On the Integrations page, click Add key on the App Store Connect
card. Enter the Issuer ID and Key ID, pick the
.p8file under Private key (.p8), and click Save key.
Shorebird checks the key with Apple before it saves it, and tells you if Apple doesn’t accept it.
Connect Google Play
Section titled “Connect Google Play”Google Play needs a Google Cloud service account that Play Console has invited to your apps.
- In Google Cloud, pick a project (or create one) and enable the Google Play Android Developer API in it.
- In the same project, open Service accounts and create a service account. It needs no Google Cloud roles.
- Open the service account, then Keys, and add a key of type JSON. Google Cloud downloads the key file.
- In Play Console, open Users and permissions and invite the service account’s email. Give it access to each app Shorebird should check, with View app information and no other permissions.
- On the Integrations page, click Add key on the Google Play card, pick the JSON key file, and click Save key.
Play Console grants access app by app, so invite the service account to each new app too.
Check a connection
Section titled “Check a connection”Each card shows whether its key is Not connected, Connected or Refused. A connected card lists the organization’s apps that have releases for that store’s platform, with what the last check of each found:
- Readable: Shorebird can read the app.
- Not checked yet: the app hasn’t been checked with this key. Wait for the next check.
- Not found: the store has no app with the bundle ID or package name shown. Check that the key belongs to the Apple team or Play Console developer account that publishes the app.
- No access (Google Play): the service account isn’t invited to the app in Play Console. Invite it with View app information.
- API disabled (Google Play): enable the Google Play Android Developer API in the service account’s Google Cloud project.
When a store refuses a key, its card says Refused with the date. Apple refuses a key that was revoked or whose role can’t read builds; Google refuses a key whose service account or key was deleted or disabled. Add a new key to start checking again.
Replace or remove a key
Section titled “Replace or remove a key”Replace key uploads a new key in place of the old one. Remove deletes the key from Shorebird: it stops reading that store, and the store’s automatic Production badges disappear. Releases marked Production by hand keep theirs. Removing a key from Shorebird doesn’t revoke it; revoke it in App Store Connect, or delete it in Google Cloud.
Production status
Section titled “Production status”Each iOS and Android release has a production setting for each platform:
- Automatic (the default): the store decides. See Automatic.
- Production: the platform is production, whatever the store says.
- Not production: the platform isn’t production, whatever the store says.
A platform that’s production shows a Production badge, with the App Store or Google Play icon, on the release’s row in Releases and next to its name on the release’s page. Hover it to see why:
- Live on the App Store: App Store Connect says the iOS version went live.
- Published on Google Play: Google Play says the version code was published on the app’s production track.
- Marked as production: someone set the platform to Production.
Automatic
Section titled “Automatic”With Automatic, a platform is production when its store says the release reached users:
- iOS: the App Store version using the release’s build is live, or was live and a newer version replaced it.
- Android: a release on the app’s Google Play production track carries the release’s version code and is published. A staged rollout counts, however far it has gone and even if it was halted, since Google Play doesn’t report either; set the platform to Not production if it shouldn’t count.
Once Shorebird has seen a release in production, it stays production after a newer version replaces it. Automatic shows no badge when:
- The organization has no key for that store, or the store refused it.
- For Google Play, the key can’t read the app (No access, Not found or API disabled on the Integrations page).
- The release has no build number.
- For Google Play, another Android release of the app has the same build number, so Shorebird can’t tell them apart.
- For Google Play, the release was replaced on the production track before the key was added. Google Play lists only its current releases, so Shorebird can’t tell whether an older one was published. Mark it Production by hand.
Set production by hand
Section titled “Set production by hand”You don’t need a store key to mark releases as production. On the app’s Releases page, open the ⋮ (Release options) menu on the release’s row, and under iOS production or Android production pick Production or Not production. On the release’s page, the Production button in the header does the same: click it to mark every platform, or open its menu to set one platform. The button reads auto while every platform is on Automatic.
Pick Automatic to let the store decide again. On Enterprise, each change is recorded in the audit log.
Anyone with the Developer role or above can change the setting, including the app’s collaborators with that role; Viewers don’t see the controls. See roles. API keys of either permission level can change it through the REST API.
When statuses stop updating
Section titled “When statuses stop updating”If a store refuses the organization’s key, that store’s automatic badges disappear and the app’s Releases page says App Store statuses are not updating or Google Play statuses are not updating. Admins and the Owner get a link to the Integrations page to add a new key; anyone else is told to ask one of them.
If the Google Play key works but can’t read the app, its Google Play badges disappear and Releases says Google Play statuses are not available, with what to fix in Play Console or Google Cloud.
Releases marked Production by hand keep their badge either way.
Releases in use
Section titled “Releases in use”Mission Control treats your production releases as the releases in use. They decide which releases the Releases list shows, which release the latest rollout can show, and which releases Patch coverage counts. A release counts when any of its platforms is production.
The Releases list shows up to ten production releases that run on any active device, most used first, then any of your five newest releases that are production but no device reports yet. An older production release no device runs any more is left off; All releases still lists it. If you can’t see active users on your plan, it shows your five newest production releases.
Until any release is production, Mission Control counts a release as in use when it runs on at least 1% of the app’s active devices, and the Releases list says so.