Bravo Studio Help Center
  • Get started with Bravo Studio 👏
  • Get Started
    • 🚀Create your first app
    • 🌟Bravo introduction
      • Get ready to create your app with ChatGPT
      • Create an app
        • Creating an app with Figma
        • Creating an app with Adobe XD
      • Duplicate an app
      • Delete an app
      • Replace linked Figma file
      • The app page
      • Sharing your app
      • Add an editor to your app
      • Fonts
        • Adobe XD - Supported fonts
    • 📱Bravo Vision previewer
    • ✨Unlock power features to create interactive apps
    • 🎓Help and tutorials
      • 📖App guide tutorials
        • Sample app tutorial: Your first binding
        • How to build a Fitness app with Bravo, Xano and RevenueCat
        • Foodgram: Social content sharing
        • Expedition journal: Write and share your adventures
        • My Subscriptions: Display data based on device ID
        • My Notes: using user ID and email from Firebase
        • My Store: Sell physical products with Bravo and Stripe
        • Titan: How to create a Smart Home App with No-Code?
        • n8n: Building an expense tracking app in 10min
      • 📺Learn with videos
      • 📚Learn with articles
      • 🗃️Browse by app feature
        • Save or "bookmark" a page
        • Backend search with Airtable
        • Backend search with Xano
        • Nested lists (list within a list)
        • Create and edit user profile (Firebase + Airtable)
        • Skeleton loader
        • Create albums in your app with Bravo Infinite images
  • Set up your design
    • 🖌️Get your Figma ready for Bravo
      • 🗃️Structuring the design: the layer hierarchy
      • 🪄Bravo Tags: adding functionality to the UI elements
      • 🧱The container
        • Setting up a container on Figma
        • Setting up a container on Adobe XD
      • 📲App navigation
        • Setting up app navigation on Figma
        • Setting up app navigation on Adobe XD
    • 🔌Bravo plugin for Figma
    • 💾Sample design files
    • 🤓Best Practices
  • App components
    • 📒Bravo Tags Master List
    • 🚪Menus
      • Modal Menu
      • Modal pages
      • Tabs Menu
      • Pop Up pages
      • Slide Menu
    • 🍞Pages
      • Modal pages
      • Pop-up pages
      • Swipe page
      • Transitions page
      • Page reveal animations
      • Page tabs
      • 🔮Stateful pages
    • 📦Containers
      • Swipe to delete
      • Top bar
      • Carousel slider
      • Aspect ratio relative to screen
      • Sortable List
      • Layer (sticky element)
    • 👋Intro & Onboarding
      • Intro page
      • Post-login page (Onboarding)
    • ⌛Loading experience
      • Loading page
      • Custom loading page
      • No loading
      • Preload
    • 📝Form & input fields
      • 👁️Password Visibility Toggle
      • 🩷Stateful input
        • ☑️Checkboxes (Multiple select)
        • ✅Required Checkbox
        • 🔘Radio buttons (Single select)
      • ⏳Input time Interval
      • 📄Dropdown selector
      • 🎚️Slider control
      • 🗓️Calendar picker
      • 📄Send form input to a database
    • 💎Components
      • Autoplay Video
      • GIF
      • SVG Component
      • Web view
      • Web Components using AI
      • Web view communication
      • LottieFile
      • Lottie-animated component
      • Flexible text (Flexo)
      • Zoomable image
      • Component states
      • Stateful component (like button)
      • Setting up the backend of Stateful component (like button)
      • Haptic Feedback (Buzzz)
      • Progress bar
      • Rich text
      • Date, Time and Currency Formatter
      • Scrollable text
      • Text Lines & Truncation
      • Status bar
    • ⚡Mobile actions
      • Mobile Actions
      • Play audio
      • Record audio
      • Play video
      • Scan QR code (external URL)
      • Scan codes (remote action)
      • Search & filter
      • Refresh page
      • Share location
    • 📱App Icon & Splash Screen
    • 🗺️Map with markers
    • 📈Charts
  • Data and Backend
    • 🗂️Set up a no-code backend
      • Xano
        • Nested lists (list > list > detail page) with Xano
        • Create a bookmark functionality with remote actions and device ID with Xano
        • Multi-user setup with Xano
        • 🔒Setting up the Xano Log in Snippet
          • ♻️Refresh Token
      • Airtable
        • Nested lists (list > list > detail page) with Airtable
        • Sort list with Airtable
        • Connect multiple tables from Airtable to one app
        • Update Airtable's API key to Access Token
      • Backendless
      • Bubble
      • Notion
        • Getting data from a Notion table
      • Firebase
        • Getting data from Firestore
    • 💾Set up API requests
      • Set up from scratch
        • Airtable
          • Set up an API GET request for list page - Airtable
          • Set up an API GET request for detail page - Airtable
          • Set up an API POST request - Airtable
          • Set up an API DELETE request - Airtable
        • Xano
          • Set up an API GET request for list page - Xano
          • Set up an API GET request for detail page - Xano
          • Set up an API PATCH request - Xano
          • Set up an API POST request - Xano
          • Set up an API DELETE request - Xano
      • Using GraphQL body type
      • Set up with API wizard & importer
        • Using the Airtable API Wizard
        • Using the Xano API wizard
    • 🎲Variables
      • Built-in variables
      • Set Variable
    • 📚Data Collection & Binding: Complete Collection
    • 🗂️Pagination
    • 🐛Debugging API issues
      • ⚙️Debugging requests in the API Collection
      • 📲Event logger
      • 🔗Link property
  • Data binding
    • 🤝Data binding types
      • API binding types
      • Bind multiple API requests to one screen
      • How to connect my API to a mobile actions
      • Remote actions: trigger an API request with a UI element
    • 💡Display data in your app
      • Bind data to design for a list page
      • Bind data to design for a detail page
    • 🆕Create data from your app
    • 🗑️Delete data from your app
    • 🚦Conditional Visibility
    • 🎛️Conditional Actions
  • Integrations & Settings
    • 🖇️Deep Links
      • 🖇️Deep Links for Bravo Vision
      • 🖇️Deep Links for published apps
      • 🖇️Troubleshooting Deep Links
    • 🔔Push Notifications with OneSignal
      • How to get a Bravo page URL
    • ⚙️Firebase Configuration
    • 🔐User Authentication
      • 🔑Authentication with Kinde and Xano
      • 🧙🏽Authentication with OAuth 2.0
        • Using social logins to authenticate users
        • Using AWS Cognito to authenticate users
        • Connecting to Spotify API
      • 📲User login with Firebase
        • ✉️Email and password Login with Firebase
        • 📞Phone Login with Firebase
        • 🍎Social Login with Firebase
        • 👻Anonymous Login with Firebase
      • ⛓️Authentication with custom backend
        • Set up Xano as your user authentication backend
    • 💰Stripe: One-time Payment
    • 💬Chat: CometChat
    • 💸RevenueCat: In-app purchases and subscriptions
    • 📉Bravo Analytics
    • 📳Facebook App Events
    • 📊Google Analytics
    • 🌐Multilingual apps
    • 🕸️How to connect with Webflow API
    • 📡NFC connection
    • 🎯Admob
  • App Publication
    • 🚀Publishing your app
      • iOS Publication: Complete Process
        • 1. Generate Certificates, AppIDs and Provisions
        • 2. Get the IPA
        • 3. Upload IPA to App Store Connect
        • 4. Test your app on TestFlight (optional)
        • 6. App Store publication
        • 7. Updating an app in the App Store
      • Android Publication: Complete Process
        • 1. Create a Keystore File (optional)
        • 2. Get the Debug APK to install
        • 3. Install the Debug APK in your device
        • 4. Get the AAB (Android App Bundle) file to publish
        • 5. Google Play publication
        • 6. Updating an app in Google Play
      • Android APK Installation Guide
      • Rejection from the app stores
    • 🎛️Making changes to your app after publication
    • 🛍️Versioning
    • 🌟App rating alert
  • Good to Know
    • 🤔Troubleshoot
      • Errors when logging in
      • Errors when creating an app
      • Errors in API requests
        • Request timeouts on Bravo
      • Errors after importing
      • Errors in publication form
    • 🧑‍💻Manage your account
    • 💳Billing
      • Bravo Subscription Plans Overview
      • App Add-ons
      • Upgrading a plan
      • Downgrading a plan
      • App allowance
      • Invoices & payment method
      • FAQ
    • ❓FAQs
      • About Bravo Studio
      • Importing a design file
      • Bravo Vision
      • Bravo Tags
      • API & Data Library
      • Login & Account
      • Other Features
  • NEED SOME HELP?
    • 📖Bravo Support Guide
    • 🤝Join the Bravo community
    • 🤖Bravo Assistant
    • 👥Production support
    • 🐞Report an issue
Powered by GitBook
On this page
  • Requirements
  • About RevenueCat
  • 🔖 The tags
  • Purchase actions
  • Purchase response action
  • Paywall
  • Access control
  • Conditional visibility for purchases
  • Restore purchases action
  • 🎨 Sample design file
  • Setup RevenueCat App
  • iOS configuration
  • Android configuration

Was this helpful?

  1. Integrations & Settings

RevenueCat: In-app purchases and subscriptions

Bravo uses RevenueCat service to integrate In-App Purchases for iOS & Android apps.

PreviousChat: CometChatNextBravo Analytics

Last updated 11 months ago

Was this helpful?

In-app purchase is the feature that allows you to build apps with subscriptions for digital products and services. Not only will this unlock recurring revenue for you or your business, but you’ll also be able to grow a loyal and engaged audience that won’t have to leave the app to make purchases.

This feature is available in the .

Requirements

  • For iOS you need to have generated an IPA bundle in Bravo.

About RevenueCat

With RevenueCat, you can allow you app users to purchase subscriptions, make sure your users pay for accessing specific pages, and more. Instead of having one set up for Android and another for iOS, Bravo connects to RevenueCat to have both platforms available in your app with just one connection.

Before starting to set this feature up, make sure you are familiar with how RevenueCat works and the meaning of Products, Entitlements and Offerings.

🔖 The tags

The following tags are available:

//Purchase action
[action:purchase:<package_id>]

//Show the price of the purchase
[price:<package_id>] => For the text layer 
{price} => Within the text

//Show the paywall
[page:paywall]

//Control access to pages and visibility to containers
[require:purchase:<entitlement_ids>]

//Show page or container to users that haven't purchased any plan
[require:purchase:none]

//Restore purchase
[action:restore-purchases]

Purchase actions

These tags will be used anywhere we want to allow users to do an in-app purchase.

[action:purchase:<package_id>]

Triggers the purchase action. This will normally need to be added in a button where users can execute the purchase. <package_id> is the identifier of the package from the offering in RevenueCat. For example: "pro", "medium" or "basic".

[price:<package_id>]

Use this tag, together with the {price} expression in the design file, to show the price of the purchase. Check out our example design to see an example. package_id will be the same one used in the purchase action.

Purchase response action

We can configure an action to happen once the purchase action is success or not.

  1. Go to the binding page in Bravo Studio, select the element with [action:purchase:<package_id>]

  2. Open the Revenuecat purchase option.

  3. Select the desired action for On Success and/or On Error:

    1. No action

    2. Show alert

    3. Go to page

    4. Go back

    5. Open URL

    6. Refresh

    7. Logout

Paywall

[page:paywall]

Use this tag to create a paywall page. This page will be displayed every time users try to access content that requires a purchase. This page will usually contain the UI elements with the [action:purchase:<package_id>] tag.

Access control

[require:purchase:<entitlement_ids>]

Use this tag to create pages that only users who made a purchase can access.

The access control is based on entitlements, which represents the access level a particular user has. Each entitlement can be associated to more than one package: for instance, in case we want to create monthly and yearly subscriptions. However, all the packages inside the same entitlement will grant access to the same content.

In the tag, separate the entitlement IDs with commas, in case there’s more than one. For example, [require:purchase:basic,medium]

Conditional visibility for purchases

[require:purchase:<entitlement_ids>]

Allows to show/hide containers, and components depending on the entitlement, allowing a lot of flexibility that can be already configured by tags in Figma (no API calls needed).

Separate the entitlement IDs with commas, in case there’s more than one. For example, [require:purchase:basic,medium]

Restore purchases action

[action:restore-purchases]

This is used to restore purchases in case the app is deleted, a new device will be used, etc. It's a requirement from Apple to include it.

🎨 Sample design file

You can use the file below to see how to set up these tags.

Setup RevenueCat App

  1. Create an account if you don't have one already (free tier available).

  2. Go to Projects -> Create Project.

iOS configuration

  1. In the RevenueCat project you have created, add an App Store app, set an app name, the bundleID from step 1 and the App-Specific Shared Secret from step 2.

  2. Create one offering. Set "default" as identifier. Only this offering is supported!

  3. Attach the packages to this offering. Use "Custom" as identifier type and enter its name. Ex: "pro".

  4. In Bravo Studio, go to you app -> Integrations -> Payments. Enable RevenueCat.

  5. Set the Apple (IOS) API Key and/or Android API Key. You'll find them in RevenueCat, under Project settings -> API Keys. Save.

  6. Now you'll be able to test the set up in Testflight:

    1. Generate an IPA: In Bravo Studio, go to your app -> Publish -> iOS.

    2. Fill the Bundle ID and certificates.

    3. Click on Get IPA.

Android configuration

RevenueCat setup

In order to set up the RevenueCat integration on Android, follow the steps below:

  • Configure an account in RevenueCat if you don’t have one, and create project. Then, create an app in that project (remember you need two different apps for Android and iOS)

  • Create your products, entitlements, and offering in RevenueCat. To clarify the concepts:

    • Products are all your different subscription types (e.g. basic, medium, pro)

    • Entitlements are the different “entrance levels” (e.g. one entitlement must have at least one product, but may have more than one)

    • Offerings are a group of products, that are available ins a specific time, mostly use for marketing purposes. We only support one “default” offering.

  • First create all your products. In our Recipes example, the list of products looks like this (note you need to create separate products for Android and iOS)

  • Then, create all your entitlements (normally 1 entitlement = 1 product, but this depends on each particular case)

  • After you have products and entitlements, you need to attach each product to its correspondent entitlement. In our Recipes example, we added 2 products to each entitlement (1 per iOS and 1 per Android):

  • Create an offering: “default” (the only one offering supported for now) and add a description

  • Enter the created offering, and click on “ + New” to add a Package

  • Select “Custom” in the first dropdown, and then enter the Identifier name (i.e. your product name) and a description

  • Enter in the created package, and click on Attach

  • In the popup, you should see all the products you added in previous steps. Attach the ones that corresponds to the package. For our example, in the pro package, we will add the “pro products” for Android and IOS:

  • Click on attach. Repeat this process for all the packages you have. When you’re done, you should see in the default offering all the packages (a.k.a subscriptions) that you have.

Bravo setup

After setting up your Android app in RevenueCat, you'll need to copy the Android API key and paste it in the Bravo settings for the RevenueCat integration:

Once you've copy/pasted the key, press Save and continue to the next section of this guide.

Google Play setup

Finally, you need to create your subscriptions in Google Play. Please read carefully the instructions, since the steps need to be followed thoroughly. The right steps to create a subscriptions are:

  1. Need to have an app published and live in Google Play (mandatory).

2. Create a Closed testing track, and upload an AAB with a newer version. Wait until the app is approved (need to be reviewed by Google even in this Closed testing track)

3. Now, you need to add a test user. This test user needs to be the same user logged in in your Android test device. The test user needs to be added both in License testing of your Google Play account, and in the Closed testing track for the app.

  • Open the License testing section in the side bar, and insert the email of the test user.

  • Then, add the tester email in the closed testing track of the app.

  • Finally, make sure the tester joins the test on the web.

4. Once the previous steps are done correctly, users should be able to create a subscription in the Monetise - Products -Subscriptions section in the left side menu. If users see the screenshot below, it means steps 1 to 3 are not completed correctly

5. Click on Create subscription and enter Product ID and Name (this product ID will be the same you enter in RevenueCat). See screenshots below:

6. Click on add a base plan, chose base plan id and select auto-renewing

7. IMPORTANT: Select Manage country/region availability in blue. If you try to add a country directly in the Edit base plan section, you might get unexpected errors trying to save

8. Unselect 95 countries/regions, search your country, check the box and click apply

9. Click on Price, enter a price and save

10. Click save

11. Click activate

12. Go back to the subscriptions main page, and if you did everything correctly, you should see your plan as active

To recap, at this point you should have:

  • Play service credentials created and saved on Revenuecat

  • Your app published in Google Play

  • A new version with the RevenueCat library integrated (new build requested in Bravo), published in a Closed testing track

  • At least one tested that joined your testing track

  • All your subscriptions created in Google Play

Now, you should be able to test the in-app purchases with the tester user you've created. Once you're ready to go, move the app to the publication track and it will be available for all users!

A Bravo .

A (free tier available).

For Android, you need to have a published app already on Google Play. In case you don't have one, create a publication-ready app and follow to publish it.

Make sure you have followed step 2 from We need to have an app created in App Store Connect with a bundleID.

Generate an App-Specific Shared Secret .

Generate an In-App Purchase Key

Complete the iOS in-app product setup .

Configure the products in RevenueCat

Now follow the first 4 steps (under Setup Instructions) indicated in .

In 15-20min you'll receive your IPA ready to be uploaded to Apple Store Connect via Transporter. .

After creating the Android app, you need to create Play service credentials. This will allow Revenuecat connect to Google play. Follow the steps indicated in to create these credentials in JSON format.

You'll need to ensure Pub/Sub service is enabled in the Google Cloud project used to create the Play service account. You can do that by following .

After registering your app, we recommend setting up . These notifications aren't required but will speed up and integration delivery times and reduce lag time updating your subscribers.

Business add-on
RevenueCat account
this guide
our iOS publication guide.
following this guide
following this guide.
following this guide
following this guide.
this guide
Learn more about Testflight
this guide
this link
Platform Server Notifications
webhooks
💸
Business add-on
Your app connects to RevenueCap and gets access to subscriptions both from Apple and Google stores
Page cover image
LogoBravo Sample: In-App PurchaseFigma