# Finish the setup

Some of the setup of an app happens in your Apple Developer account, in App Store Connect, in Google Play Console, in the Firebase console and in the RevenueCat dashboard, where no command of SMF can reach: a key that only you can download, a switch in a console, the products that the app sells, the fingerprints of your release keys. `smf create` does everything else. At the end it says how many such steps are left and prints a link to this page, and the README of the app lists them in its section "Finish the setup".

Each step has its own page with a click-by-click guide. The link of your app lists its steps in the order to do them, and each guide leads on to the next one. Do the steps once the commands that `smf create` left for later have run, such as `dart tool/configure_firebase.dart dev`. Mark each step as done as you go, here or in its guide: this browser remembers the marks.

Your app has the [flavors](https://doc.saymyframe.com/guides/flavors.md) `dev`, `staging` and `prod`, each with an id of its own, and a service knows each id as an app of its own. So repeat a step for each flavor that needs it. Each guide says what repeats. A flavor that never reaches a store or a real user may need none of it.

## Sign the iOS app

- [In Xcode, sign the iOS app with your paid Apple Developer team](https://doc.saymyframe.com/setup/app-entry-ios-app-id.md): the step `app_entry.ios_app_id`, for [`apple_sign_in`](https://doc.saymyframe.com/modules/apple-sign-in.md), [`firebase_messaging`](https://doc.saymyframe.com/modules/firebase-messaging.md).

## Sign-in

- [Turn on Sign in with Apple in Firebase Authentication](https://doc.saymyframe.com/setup/firebase-auth-apple-provider.md): the step `firebase_auth.apple_provider`, for [`firebase_auth`](https://doc.saymyframe.com/modules/firebase-auth.md).
- [Give Firebase your Sign in with Apple key, so that deleting an account works](https://doc.saymyframe.com/setup/firebase-auth-apple-revocation.md): the step `firebase_auth.apple_revocation`, for [`firebase_auth`](https://doc.saymyframe.com/modules/firebase-auth.md).
- [Before releasing on Google Play, give Firebase the SHA of your release keys](https://doc.saymyframe.com/setup/firebase-auth-google-release-sha.md): the step `firebase_auth.google_release_sha`, for [`firebase_auth`](https://doc.saymyframe.com/modules/firebase-auth.md).

## Push messages

- [Give Firebase your Apple push key (APNs key)](https://doc.saymyframe.com/setup/firebase-messaging-apns-key.md): the step `firebase_messaging.apns_key`, for [`firebase_messaging`](https://doc.saymyframe.com/modules/firebase-messaging.md).

## Google Analytics

- [Turn on Google Analytics in the Firebase project, unless it is on already](https://doc.saymyframe.com/setup/firebase-analytics-google-analytics.md): the step `firebase_analytics.google_analytics`, for [`firebase_analytics`](https://doc.saymyframe.com/modules/firebase-analytics.md).

## Purchases

- [Set up payments in App Store Connect and Google Play Console](https://doc.saymyframe.com/setup/purchases-store-agreements.md): the step `purchases.store_agreements`, for [`revenuecat`](https://doc.saymyframe.com/modules/revenuecat.md).
- [Create the products of your plans in App Store Connect and Google Play Console](https://doc.saymyframe.com/setup/purchases-store-products.md): the step `purchases.store_products`, for [`revenuecat`](https://doc.saymyframe.com/modules/revenuecat.md).
- [Set up the entitlement premium and the default offering in RevenueCat](https://doc.saymyframe.com/setup/revenuecat-entitlement-and-offering.md): the step `revenuecat.entitlement_and_offering`, for [`revenuecat`](https://doc.saymyframe.com/modules/revenuecat.md).
- [Copy the API keys of your RevenueCat apps into .env](https://doc.saymyframe.com/setup/revenuecat-api-keys.md): the step `revenuecat.api_keys`, for [`revenuecat`](https://doc.saymyframe.com/modules/revenuecat.md).
- [Give RevenueCat your In-App Purchase key from App Store Connect](https://doc.saymyframe.com/setup/revenuecat-app-store-key.md): the step `revenuecat.app_store_key`, for [`revenuecat`](https://doc.saymyframe.com/modules/revenuecat.md).
- [Give RevenueCat access to Google Play with a service account](https://doc.saymyframe.com/setup/revenuecat-play-service-account.md): the step `revenuecat.play_service_account`, for [`revenuecat`](https://doc.saymyframe.com/modules/revenuecat.md).
- [Publish your terms of use and privacy policy and put their links into .env](https://doc.saymyframe.com/setup/paywall-legal-pages.md): the step `paywall.legal_pages`, for [`paywall`](https://doc.saymyframe.com/modules/paywall.md).
