In App Store Connect, enter in your new app created. You are going to configure the products that will be purchased from your app.
In the left menu:
Go to In-App Subscriptions.
First create a Subscription group.
Then create a Subscription.
Fill the fields. In the ExpoStarter example we use the identifier pro_monthly.
If you set another different one, remember to change it in RevenueCat later.
In order to allow RevenueCat communicate with StoreKit API, we need to generate a key. Todo so, in the App Store Connect do this:
Click in Users and Access in the very top menu
Click in Integrations
Click in In-App Purchase
Generate a Key
If you already have an Issuer Id, copy it as well. You will need it later. It appears above the generated keys:
If you haven't done so yet, you'll need to request access to the App Store Connect API. In that case, you will also need to generate a random App Store Connect API key. Access level or name of the key here doesn't matter, but the Issuer ID will not show unless a key has been generated.
Go to the Api Keys menu on the left and next to your App Name click Show Api Key. Copy it in a safe place, you will need it later to paste in the project config.
An Entitlement contains associated products. It is an easy way to identify if our users are ‘pro’ or ‘plus’ users, and implement logic according to it within your app. To create an Entitlement:
Click in Entitlements on the left menu
Create a pro entitlement. If you set another id for the Entitlement, remember to replace it in the Xcode project.
Click in the created Entitlement and add the three previously created products.
Offerings are the selection of products that are "offered" to a customer on your paywall. Creating several offerings allow us to do experiments easily with different products.
In the WrapFast example we use an Offering with a default identifier.
Save the Offering and create a package for every product. The Offering should look like this:
In the ExpoStarter project there is configured a RevenueCat Paywall.
They are remotely configurable templates that makes easy displaying Paywall designs.
To create a Paywall:
Click on Paywalls in the left menu
Click on Add Paywall next to default Offering. Every Paywall is associated with one Offering.
Select the template that most fit to your case. In this example we are going to use this one:
Field
Details
Image
Can be replaced in your code.
Main Content
Select colors.
Packages
- Add the 2 packages we created previously.
- Select colors.
- Add a text detail, e.g., Full Access. Cancel anytime.
- Configure Call to Action text and colors.
Of course you can manually build one on your own fetching the products with the
useOfferings hools.
If you've set everything up but are still having issues fetching products and offerings, check your App Store Connect for any pending agreements that need acceptance.
This is especially important if your account is new.