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.

Get Started

    • Thank you for purchasing our app

    • Please read the documentation carefully , and if you have any question check us.

    • Find the life_android.zip from the folder downloaded from codecanyon and open in in android studio.

Import Android Project

    • Open android project in android studio.

    db_1

Change package name

    • Open your Gradle Build File (build.gradle - Usually app or mobile). Update the applicationId in the defaultConfig to your new Package Name and click on Sync Now Gradle.

    • db_1

Change App Icon and Name

      db_1
    • Make sure the project root folder is selected as Android otherwise select Android by clicking on it .

    • Then Right click on app > res tab

    • Find mipmap folder, right click on that and delete this folder.

    • db_1
    • Go to new New > Image Asset

    • db_1
    • In the pop up that appears select the the Foreground layer and choose image as asset type, then click on a folder icon to select your .png image file of icon.

    • You can resize app icon with the scroller shown in to above image.

    • Click on next , a new dialogue will appear like below.

    • db_1
    • Click on finish button, app icon will generate automatically.

    • Change name in strings.xml file

    • db_1

General style

    • If you want change the theme of ui. change color as your requirment.

    • Go to res > values > colors

    • db_1

Add Android app to Firebase

    • In the next step, we have to choose the platform to add Firebase to our application. The platform can be Android, iOS, Web etc..

    android_firbase_1
    • Your package name is generally the applicationId in your build.gradle (app-level) file

    • See this page for information on using keytool to get the SHA-1 hash of your signing certificate

    • Add your applicationid in the first field and SHA-1 to the third field as shown in the image below.

    android_firbase_2
    • Download the google-services.json file & place it in your project's app root directory.

    android_firbase_3
    android_firbase_3
    • Back in the Firebase console-setup workflow, click Next to skip the remaining steps and then finish and complete

    android_firbase_4

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

Enable Email sign in

    • Enable Email sign in : now click on Add New Provider button and click on Email/password tab.

    • db_1
      db_1
    • enable Email/Password switch and click on save.

    • db_1

Change Base url, Image Url

    • Open Const.java file

    • Replace -------------------- of BASE with your baseURL and -------------------- of APIKEY with your api_key (which you got, when you was setting up backend).

    • These credentials can be available after following the backend documentation. If you have not followed it, please follow it first

    • db_1

Revenuecat

    Android in App Purchase Setup

    • Play Store subscription setup

    • For configuring subscriptions on Google Play Console, follow the steps below:

      • Go to Google Play Console . Log in with your developer account.

      • Select the app in which you want to add subscriptions.

      • From the left menu, under the Monetize section, expand the Products category. Select Subscriptions.

      RC1
    • Let's start creating the subscriptions:

      • From the Monetize > Products > Subscriptions page, click Create subscription.

      • Select the app in which you want to add subscriptions.

      • From the left menu, under the Monetize section, expand the Products category. Select Subscriptions.

      RC1
      • Enter a unique Product ID for your subscription and a publicly viewable Name. Click Create.

      • For example, we will be creating a subscription for 3 months with:

        • Product ID: test_3m

        • Name: Premium - 3 Months

        Note : You won't be able to change or reuse a Product ID across any of your apps, even if the product is deleted.

        RC1
      • Click "Add a base plan"

      • RC1
      • Enter the Base plan ID, Renewal type (RevenueCat supports only Auto-renewing), Tags , and Price. Click Save.

      • RC1
      • Click Activate

      • RC1
      • Similarly, add two more subscriptions for 6 months and 12 months .

      • RC1
      • That completes the subscription setup for the Google Play Console. Let's move on to the play Store subscription setup.


      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 Android app

      • Let's start by configuring the Android app:

    • Go to Apps under Project settings (from the left menu). Select Play Store .

    • RC1
    • Enter the App name and the package ID.

    • RC1
    • You need to create another Service Account for RevenueCat. Follow This guide to generate the credentials in JSON format. Drag and drop the Credentials JSON file. Click "SAVE CHANGES".

    • RC1
    • This completes the Android 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

Debug APK

    • Refer to below image for debug apk.

    • db_1

Publish App on Play Store

      Once your app get’s published on the Playstore, Some of google authentication might stop working as methods as mentioned below.

      • Log in with gmail

      • Mail and Password Log in

      • Or any other authentication methods firebase offers

      • Google resign the app whenever we publish the app to the store and to make it working, we have to retrieve the SHA1 Fingerpring from Playstore from our app, and add that to the firebase.

Want to talk with us?