Life

Sleep Sounds - Meditation Sounds

Introduction

Hey there, We are happy to see you as our valued customer of the Life-Sound Meditation app. Here is the easy documentation to set up the app and ready to launch. Please follow all the instructions carefully and don’t skip any step. Feel free to contact us if you face any problems while set-up.

Change App Bundle:

    • Extract the folder you downloaded from the codecanyon.

    • Open iOS project (.xcodeproj) in Xcode.

    • Find bundle identifier and change with your bundle identifier

    • firebase_1

Change app name

    android_app_name

Change app color

    Change_app_color

Change app icon

    • Create your app logo with size 1024 * 1024

    • Drag and drop to existing app icon in Xcode.

    android_app_name

Setup your Credentials

    • Open Const.swift file

    • Replace https://your-domain.com/ with your baseURL (which you got, when you was setting up backend).

    • firebase_1
    • Replace ---- with your apikey (which you got, when you was setting up backend).

    • firebase_1

Add your APPSTORE_APP_ID

  • Go to your app console sdf App Store Connect

  • Click on your app

  • Go to YOUR_APP > App Information > General Information > Apple ID

  • firebase_1
  • Copy AppID and paste to Const.swift File in your project

  • firebase_1

Configure Firebase

    • Go to the firebase project you might created while following backend documentation.

    • If you don't have, follow the steps below and create one project.

    • At first, follow this link https://firebase.google.com/

    firebase_1
    • Now, we first have to create a Firebase project. Firebase project will go through and describe what it is. This allows us to add an app to that project. It can have many projects inside of Firebase.

    firebase_2
    • Now, we have to give a name and id to the project, enable Google Analytics for the project, set an analytics location, and accept all the terms and conditions. Firebase console automatically creates a unique id for the project.

    • Step 1 : Giving a name to the project

    firebase_3
    • Step 2 : Enable Google analytics for the project

    firebase_4
    • Step 3 : First Choose default Firebase account and then create project

    firebase_5
    firebase_6

Add iOS app in Firebase

    • We have to choose the platform to add Firebase to our application. Click on iOS.

    ios_firbase_1
    • On the next screen, enter your iOS bundle ID & App nickname and click on Register App. You can find your bundle ID in the General tab for your app's primary target in Xcode. If specified, the app nickname will be used throughout the Firebase console to represent this app. Nicknames aren't visible to users.

    ios_firbase_2
    • Download the GoogleService-Info.plist file & move the GoogleService-Info.plist file you just downloaded into the root of your Xcode project and add it to all targets. Make sure the config file is not appended with additional characters, like (2).

    ios_firbase_3
    • Back in the Firebase console-setup workflow, click Next to skip the remaining steps and the finish.

    ios_firbase_4

Create APNs Auth key for push notification

    • Open https://developer.apple.com/account

    • Log in using your Apple developer credential.

    • You obtain a provider certificate from your developer account In the certificates section first as shown in the below image.

    • Select Certificate, IDs & Profiles tab.

    apns_1
    • Select keys tab.

    • Tap on the + button.

    apns_2
    • A key can be generated which gives the FCM full access over the Apple Push Notification service (APNs). On the "Keys" menu item, register a new key. The name of the key can be anything, however you must ensure the APNs service is enabled:

    apns_3
    apns_3
    • Click "Continue" & then "Save". Once saved, you will be presented with a screen displaying the private "Key ID" & the ability to download the key. Copy the ID, and download the file to your local machine:

    apns_3

    Copy Key ID & Download File

    • The file & Key ID can now be added to your Firebase Project. On the Firebase Console, navigate to the "Project settings" and select the "Cloud Messaging" tab. Select your iOS application under the "iOS app configuration" heading.s

    apns_4
    apns_5
    • Upload the downloaded file and enter the Key & Team IDs;

    apns_6

Google sign in

    • Click to Authentication and sign in mathod tab

    android_firbase_1
    • Click to Enable

    • Select your support email and save

    android_firbase_1
    • Successfully Enable google sign in method

    android_firbase_1
    • Set Google ‘REVERSED_CLIENT_ID’

    • Open GoogleService-Info.plist file and find ‘REVERSED_CLIENT_ID’ and Copy it.

    • And paste it in project > target > info > URL Types

    ios_firbase_4

Email sign in

    • Click to Authentication and sign in mathod tab

    • Then click on email/password provider

    android_firbase_1
    android_firbase_1
    android_firbase_1
    • Then both button switch to enable and save

    android_firbase_1
    • Your email and password successfully Enable

    android_firbase_1

Revenuecat

    iOS in App Purchase Setup

        Before making products, Let's agree Agreements

        firebase_1
        • Once you agree this, both status should be active like this

        firebase_1

        App Store subscription setup

    • Follow the steps below to configure subscriptions on App Store Connect:

    • RC1
    • Choose the app in which your want to add subscriptions.

    • RC1
    • Select Subscriptions from the left menu and click Create under Subscription Groups.

    • RC1
    • Enter a name for the Subscription Group and click Create.

    • Learn in detail about iOS Subscription Groups here .

      RC1
    • This will create and open the Subscription Group. From this page, you will be able to create subscriptions for your app. Click Create under Subscriptions .

    • RC1
    • Enter a Reference Name and Product ID for the subscription. Use the same format for the Product ID as we had described earlier. Click Create .

    • RC1
    • This will take you to the subscription details page. Select the Subscription Duration .

    • RC1
    • Scroll down to the Subscription Prices section and click "Add Subscription Price" button.

    • RC1
    • Enter the subscription price in your preferred currency. Click Next.

    • RC1
    • The next page will show you the automatically calculated prices for other countries and regions. Click Next.

    • RC1
    • Click Confirm on the next page.

    • RC1
    • Scroll down to the App Store Localization section. Click "Add Localization".

    • RC1
    • Select your preferred language and enter a Display Name and Description . Click Add .

    • RC1
    • You can skip the App Store Promotion for now as it's optional.

    • RC1
    • Under the Review Information section, add a screenshot of the subscription screen of your app (you can also add a blank screenshot, having proper size for now, if you haven't yet created the subscription UI).

    • RC1
    • Scroll up to the top of the subscription page, and click Save. You will see a warning message if you haven't yet added localization to your subscription group. Click Add localizations (skip if you have already added).

    • RC1
    • This will take you back to the subscription group page. Click Create under App Store Localization.

    • RC1
    • Select your preferred language, enter a Subscription Group Display Name, and select App Name. Click Create .

    • RC1
    • This completes the addition of a subscription. You can follow similar steps for adding the other subscription plans as well, use the plus ("+") button next to Subscriptions .

    • RC1
    • With all the subscription plans defined on Play Console and App Store Connect, we are ready to connect with RevenueCat.


      Connect with RevenueCat

      • Create an account or log in to RevenueCat from here to get started.

      RC1
    • If you have created a new account, you will be automatically prompted to create your first project. Enter a Project name and click "CREATE PROJECT" button.

    • RC1
    • Next, you need to add your Android and iOS apps to RevenueCat in order to use and manage the subscriptions.

    • Adding iOS app

      • Follow the steps below to configure the iOS app:

    • Go back to the Apps page and click on "+ New".

    • RC1
    • Select App Store.

    • RC1
    • Enter an App name, Bundle ID, and App-Specific Shared Secret. To generate an App-Specific Shared Secret, follow The guide . Once you have the key, click "SET SECRET", enter the value, and click Set. Then click "SAVE CHANGES".

    • RC1
    • This completes the iOS app setup on RevenueCat.

    • Define subscriptions on RevenueCat

      • You will find these configuration levels on the left menu of the RevenueCat dashboard under the section Product Setup:

      RC1

      Products

      • In this configuration, you need to add all the subscriptions for both your Android and iOS app that the user can purchase. This is like a 1-to-1 mapping of the products in RevenueCat that you have already added to the stores (Google Play Store and Apple App Store).

      • To add products, follow these steps:

      • Select Products under the Product Setup section. Click "+ New".

      RC1
    • You need to enter the product Identifier and the App . Make sure you use exactly the same product ID you used for the Android/iOS subscription. Click ADD .

    • RC1
    • Similarly, add the other subscriptions as well (for both Android and iOS).

    • RC1

      Entitlements

      • Follow these steps to add an entitlement:

      • Select Entitlements under the Product Setup section. Click "+ New".

      • RC1
      • Enter an Identifier and Description for the entitlement. Click ADD.

      • RC1
      • Next, you need to attach the products to this entitlement. Click on the entitlement that you just created.

      • RC1
      • Click on Attach.

      • RC1
      • Select a Product from the dropdown and click ADD .

      • RC1
      • Similarly, attach all the other products to this entitlement.

      • RC1

      Offerings

      • Follow the steps below to add offerings:

      • Select Offerings under the Product Setup section. Click "+ New".

      • RC1
      • Enter an Identifier and Description for the offering. Click ADD.

      • RC1
      • Click to open the offering that you just created.

      • RC1
      • Click on "+ New" beside the Packages.

      • RC1
      • Enter an Identifier for the package from the dropdown and add a Description . Click ADD.

      • RC1
      • Similarly, add the other packages as well.

      • RC1
      • Click to open a package. Then click Attach.

      • RC1
      • Select the respective Play Store and App Store products from the dropdown. Click Attach.

      • RC1
      • Similarly, attach the correct products to the other two packages as well.

      • RC1
      • This completes the three levels of configuration on the RevenueCat.

      RevenueCat Project setup

      • you need to add the App Store Key and Play Store Key to Your project You can get these keys by going to the RevenueCat dashboard > API Keys > Public app-specific API keys. Copy and paste these keys into the respective fields of Project

      • RC1
        revanuecat_ios.png

Configure Google Ads

Want to talk with us?