Meditation & Sleep App Template

Create your own meditation app using our ready-to-go Meditation & Sleep App template.

Introduction

This document describes our customizable Meditation & Sleep App template that is designed for creating playlists to help in practicing self-guided meditations or relaxation techniques and can be used on any mobile device.

As a bonus, we provide detailed explanations for those who are interested in customizing the offered app template.

Using Meditation & Sleep App Template

No special knowledge or experience is required to use our Meditation & Sleep App template — just follow the simple steps below to install the app and enjoy low-code development with Appery.io!

Creating App from Template

  1. From the Apps tab, click Create new app.
  2. Select Appery.io Templates > Meditation & Sleep App, enter the name for your project (for example, Meditation App), and click the Create button:

In a moment, the app is created and the first thing you can see is our App Builder Start page with the Project View section on the left where all the predefined project data can be found.
The app Start page also features the video tutorials with instructions on how to use the templates and suggesting the ways of how they can be modified according to your needs:

Actually, the application is ready to be used and does not require any additional effort on your part so let's test the app at work and see what it's all about.
Click the TEST button in the app Toolbar; you will be redirected to the tab with the app preview.

🚧

Note!

If you are launching your project for the first time, please allow some time for the app preview to load.

App Description

Once loaded, the application Home page will launch in the preview, offering to select from four blocks:

As an app user, you can now try the app by selecting the activity you are interested in: listen to selected meditations, play the sleep sounds, select tracks for playback depending on how you currently feel, or create your own Favorites playlist.

👍

Customizing Options

There are only several predefined blocks (pages) and soundtracks available by default but you can easily add custom tracks and/or more pages to your app using the connected Appery.io DB.
Besides, many more customization options are also available like changing the app color themes, launch icons and screens, customizing app pages, etc.
If interested, check out the instructions in the Customizing App Template section or watch this video to learn how to do it.

What is really good - you require no special training to use the app: from the Home page, simply choose the corresponding block depending on what you would like to do and you will be redirected to the corresponding app page:

Every suggested page (with the exception of Favorites - in a new app no tracks are marked favorites by default) has a manageable list of tracks that can be played back right away: you just need to select the track you'd like to listen to and the Media Player will load.

Using Media Player Controls

You will definitely have no problem dealing with the embedded Media Player as well: all the controls are quite standard and user-friendly:

  1. After you select a soundtrack on the needed block (page), the Media Player will start displaying the track details and basic playback controls:
  1. A click on the additional menu (three dots) will open the modal window offering extra options like Repeat current, Play next, Play once, or Close. Also, you can add the track to your Favorites list (will be placed on the Favorites page automatically) on the heart icon click:

Using Timer

You are also free to select for how long the selected music should play until it stops. This option is available for all tracks.
The Timer option is disabled by default but if you are interested in using it, click the Timer button to open its menu where you can select from the 5 min, 15 min, 45 min, or 60 min options or add your custom time option.
You can also turn this option off.

Managing Favorites tracks

Every time you click the heart icon for a track, it will be added to your Favorites list automatically (found on the Favorites page).
This list offers the best of both worlds: you can start listening to the tracks you love most right away and enjoy the easy and nice controls of the Media Player as it works exactly the same way.
If you decide to remove any track from this list, just unclick the heart icon:

Managing Feelings tracks

The Feelings page can be used to find the track that best suits your current mood. Just tap on the button with a predefined emoticon and select the suggested track associated with some particular emotion or feeling. If you select, for example, In love, you will see the list of tracks that can be associated with this feeling:

And again, there is nothing special about playing back these tracks as well: you can use the Media Player and Timer options just like you do for other app tracks.

👍

Customizing Feelings Page

As an app admin, you are also free to assign custom feelings to your tracks so that they will serve as the search for a particular emotion tracklist.
You can check out the instructions in the Customizing App Template section or watch this video to learn how to do it.

Customizing App Template

It is natural that being a template, our Meditation & Sleep App offers many customization options. So, if you are interested in customizing this template, we highly recommend that you check out the instructions in this section.

Also, you can watch this video (also available on the app Start page) for some tips on how it can be modified according to your needs:

👍

Note that our Services Team will be happy to assist you in building the application you need. So, if you require professional help with additional customizing or debugging your app code and/or logic, you can consider purchasing one of our Support Packs to get the highest priority support.

Renaming App

The first thing you might like to do to make your app unique is to rename your project.

  1. To do it, you will need to exit the App Builder so click the CLOSE button in the top app Toolbar:
  1. After that, you will be redirected to the Apps tab with the information about your Appery.io projects, their saved versions, people with whom you share the project, and about hosting on Appery.io. Here, click the app Rename button:
  1. Now, in a new window, provide a new app name, for example, Meditation and Sleep Application and confirm this change:

In a moment, the Apps tab will be updated with a new app name.

  1. Now, you can click Open to proceed with customizing your own application:

Reviewing General App Structure

When the app opens in the App Builder, you will see that this app template was created with Ionic 5 and has multiple folders comprising a set of organized pages, predefined color Themes, integrated backend services, TypeScripts and custom components all of which can be customized as per your needs and app requirements. You can unfold any of them to see what resources are available:

Every file or folder in the Project tree was created using our App Builder and we will now give you a little background of how you can customize the template resources.

Adding Custom Audio Tracks

Probably, the very first question is "What to do if I want to add my own soundtracks?"
And the answer is "To use the app database."
While it may sound difficult, you will be surprised to find out how easy it can be done using the connected Appery.io DB.

  1. Click the Database link located to the right of the top app Toolbar to open the Databases dashboard in a new window so that you can now work with your database without even closing the project:
  1. On the Databases page, click MeditationAppTemplate_MeditationAppDB to open the database:
  1. Then, in the database, click on the Collections tab to access the default soundtracks records organized in the tracks custom collection:
  1. To upload your own track(s), click the +Row link and in the newly created row, enter the needed track information: its name and description, then upload the file itself. You can select an existing file or upload it from your drive:
  1. To assign the track to a specific category, use the related column. It can be meditation, sleep, or one of the emotions on the Feelings page.
  2. The soundtrack record is instantly added to the database and can be tested from the app right away:

Customizing Track Categories

  1. If you need to customize the default category(ies) of the tracks to be used in your app, in the Project view, open TypeScript > PageUtilities folder and edit the existing (or add your own) array with the needed parameters: id, headerTitle, and/or trackListTitle:
  1. To add the custom header image, you will first need to upload it via the Media Manager from your drive (should be prepared beforehand) and apply it for the app and then provide the correct file name for headerImage (can be found in the Image properties section):
  1. When done, remember to make changes to the existing tracks collection entries:

Customizing App Pages

Opening the Pages folder, for example, will allow you to customize the individual app pages' UI and behavior. The easiest is changing the text so let's start with it and take a closer look at how this can be done.

Changing Text Property

With Appery.io, not only can you easily change the name of your application, but you can also modify any text in the suggested template.

Let's review the example with changing the text of one of the Homepage UI components.

  1. First, select the Homepage on the Project tab list located to the left of the mobile phone frame. The page will open in the DESIGN panel.

📘

Adjusting Screen Size

Note that you might need to switch to the comfortable screen size (depending on your monitor) XS, SM, MD, LG, XL to see the whole page.

  1. Select the text instance you would like to modify.

📘

Using Breadcrumbs

You might have noted that there are the breadcrumbs above the phone frame: they are often used for easy navigation between the parent/child components.

  1. The PROPERTIES panel for that component will be shown on the right where you can locate its Text property.
  2. Now, you can simply modify the text value, for example, replace the default Favorites with My List and this change will be automatically reflected in the UI:
  1. Now, when you click TEST once again, you will see that the preview has also been updated according to the recent change made:

Changing App Logo

Our template has a default logo, but you can replace it with any other image you like.

  1. To change the logo image, select it and click the Change button on the PROPERTIES panel.
  2. The Media Manager window will open where you can either select one of the available images or upload a needed file from your drive:
  1. When uploaded, the image file appears on the images list and can be selected and then applied as a new app logo:

As a result, an updated image will be shown on the Home page:

Customizing App Color Themes

Another great way to make your application stand out from a plethora of other apps is by changing the app color theme. You will be surprised to see how easy it is to completely change the looks of your app using our Theme Generator option.

Each of our templates has its own unique design. What it also has is called Themes that are created under the Theme folder.
Our Meditation & Sleep App template offers five different color themes to select from: Aqua, Blue, Crimson, Green, and Meditation (default):

👍

Creating Custom Themes

If you would like to create your custom theme, you can do it using the CREATE NEW > Theme dropdown and following the instructions in this document.

Every app page has a Theme dropdown. The app theme set for this template is Meditation but you can try selecting other theme options from the dropdown to see how this specific page will look like under a different theme:

👍

Important!

This dropdown works for preview purposes only and if you decide to apply the selected theme to the entire application, go to Project > App Settings and select the needed theme from the dropdown:

Now, save the app and click TEST again to see how the application looks like with newly selected theme:

Customizing App Launch Icons and Screens

In addition to modifying the appearance of the app pages, you are also free to replace the default launch icons and screens by using our Launch Icons and Screens generator (or upload your custom fonts by using the Files Manager).
It works similar to what was demonstrated in the Changing App Logo section: by clicking the Change button and using the Media Manager:

Adding App Pages

Also, you might want to add an additional page to your app.

  1. To start, you can use the Clone option to create a replica of one of the default blocks:
  1. Then, one by one, change its text and icon:
  1. And, finally, make it navigate to the needed page. The About page was created beforehand, so all you need to do now is select the block, expand the EVENTS tab from the bottom, and save the component's Click event with the Navigate to page action defined for the About page:

Here is how the saved event should look like:

  1. Let’s click TEST again and select the new About Us block to open the page and see how it looks like in the app:

Applying Custom Components

Now, let's take a look at one more instrument you can use to modify your app appearance: using our custom compoments feature.
In this application, one of the four predefined custom components, SpinnerPercentsLoading, was used on the Tracks page to show a soundtrack spinner loader percentage:

And, of course, you are free to delete this component and replace it with another one (showing just percentage, loading spinner) or use both at the same time, if you like. We like the current one most. So, no changes this time :)

Testing Customized App

After you are done customizing your application, click TEST once again to view the modified app in the desktop web browser preview.

Also, if you want to share the app link with other people, click the Test options button next to TEST and check the Public option. You can always uncheck it to make the app private again:

Exporting App

When your final app version is ready, you might like to proceed with exporting your app for
Android or iOS with further installing it on a device.

📘

Selecting Build Type

Before you can proceed with exporting your app, go to Project view > Project > App settings > Android binary/iOS binary to select the Release build type (Debug is the default type for both and can be used for testing purposes only):

Selecting iOS binary build typeSelecting iOS binary build type

Selecting iOS binary build type

👍

Important Note!

Please, note that before you can export the app, the app certificates must be imported or automatically generated (in the case of Android).
You can check this document in case you need help with exporting your application for iOS.
Here, you will find information on generating certificates for Android.
Note as well that starting from August 2021, new apps are required to publish with the Android App Bundle (.aab) on Google Play.
Please read more here.
You can also check this Appery.io Community video that shows how to create Android and iOS certificates:

  1. After the needed certificates have been added to your app all you need to do is to wait for the bundle to be created.

  2. Now, you need to select the format you prefer (you are also free to build both if you need): .apk / .aab or .ipa to start building your project:

🚧

Managing Build Error The certificate file is not set

If this is your first app created with Appery you will most likely get the error signifying about missing certificates that will prevent you from successfully finishing the build process.
The error reads similar for both binary types and indicates that you should set the corresponding certificate before starting a new build.
If this notification is what you see after starting your build, please check out the this document about the certificate management that explains how to add the needed certificate to your project:

  1. Once your project is generated, you will see the QR-Code that you can use to upload the application to your device (or save the .apk / .aab or .ipa file for further use):
  1. Then, install the app on your device and enjoy the result of your customization efforts:
*Meditation & Sleep App* installed on an iOS device*Meditation & Sleep App* installed on an iOS device

Meditation & Sleep App installed on an iOS device

📘

The app can also be published as a mobile web app. Check this link to learn how to do it.