![]() ![]() There are three keys we must generate and add to our MagicWeather app: The first is a RevenueCat entitlement ID, and the other two are iOS and Android API keys. Step 6 below will go into more detail about creating a paywall and adding subscriptions to your app. Note: The MagicWeather sample app provides a complete example of configuring subscriptions in Flutter. Note: The MagicWeather sample app has examples for using Amazon’s Appstore, but this tutorial will focus on only the Google Play Store for Android subscriptions. This tutorial will focus on in-app subscriptions for both iOS and Android, so both device types will be used to test. Now you can run the sample MagicWeather app, which will look like the image below. Open the terminal in Android Studio and run the following command: flutter pub get Note: If you haven’t already installed Flutter in your code editor, follow this guide to set up your development environment. After opening Android Studio, click on the Open button and select the purchases-flutter folder that you just created. ![]() To follow along, you’ll need to clone the full repo and open the example project.Ĭlone the repo as follows: git clone open the project in Android Studio or VSCode this tutorial uses Android Studio. This tutorial uses the MagicWeather example Flutter app from the RevenueCat purchases-flutter repo. You also don’t need to worry about validating purchases or managing servers – which can become tedious and complex. One huge benefit of using RevenueCat is that it acts as a single source of truth for a user’s subscription status. We’ll cover how to configure subscriptions for both iOS and Android using RevenueCat. In this complete guide to setting up Flutter in-app purchases, you’ll learn how to configure monthly and yearly subscriptions for a Flutter app.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |