New Tutorials on Building Mobile Apps with Appery.io Backend Services
Try our new tutorials:
Try our new tutorials:
Appery.io new HTML5 app builder has been the default builder for the past couple of weeks and we continue to update it with new features. One such feature is new Windows 8 support. In addition to jQuery Mobile/PhoneGap apps, you can now build Windows 8 apps with native support such as Snap View, Search Charm, Share Charm, and Live Tile.
To create a new Windows 8 app, click the “More create options” link from the Apps page and then select Windows 8 App as the app type. Try our Windows 8 app tutorial.
We also upgraded to a much better jQuery Mobile version 1.2.
We also upgraded PhoneGap to version 2.2. This means Appery.io cloud build has also been upgraded to PhoneGap 1.2.
If you use Appery.io Mobile App Tester for Android – go and grab an update so it also uses the latest PhoneGap version.
A long requested feature – Push Notifications feature has been added to Appery.io Backend Services.
Want to try it? Try our new Push tutorial.
Build this app and learn how the app builder is fully integrated with backend services.
Last week we put posted Building a Mobile Search App with Appery.io Database tutorial that shows you how to search a database for a particular search term. The way the search worked, is that the entire word has to be matched. For example, you could enter ‘Apple’ but not ‘Ap’ to search. In this post we are going to show you how to use a regular expression to get all objects that start with a particular letter. As for our data, are going to use US States.
To start, the UI that we need looks like this:
That’s all we need for the UI. Let’s now create the database.
That’s it for the database. Let’s now add a REST service to search this collection.
{"States":{"$regex":"^C", "$options":"i"}}
The above will return all states that start with letter C or c. “$options”:”i” is what specifies the query to ignore the case.
We are done with the service. Let’s move on to mapping.
The input mapping looks like this:
This is JavaScript mapping:
return '{"States":{"$regex":"^'+value+'", "$options":"i"}}';
This is output mapping:
The last thing we need to do is to invoke the service. Select the input search field, then Events > Add Event > Search. Add Action > Invoke Service, select the service instance.
To test the app, enter any letter, for example ‘n’ and click the magnifying glass inside the search input:
This tutorial will show you how to build an app that searches data stored in Appery.io database.
Let’s start with building the mobile UI.
Using Appery.io app builder, create a page named Phones and build the following UI:
Open the service and then open Request Parameter panel. It should look like this:
Click Test. As we didn’t specify anything for where parameter, you should get all the phones in the collection.
Let’s now test the where parameter. Enter the value of {“Maker”:”Samsung”}, then click Test. You should now get only records where the maker is Apple.
Note that we don’t need to create the response parameters as the response was automatically created when we imported the services.
return '{"Maker":"'+value+'"}';
this means any value entered from the page will be used to search the database.
Appery("no_records").hide();
That’s to hide the label on every new search.
if (jqXHR.responseText == "[]"){ Appery("no_records").text("Nothing found"); Appery("no_records").show(); }
If nothing is returned, show the message.
If you want to use SQLite database, get data from the database and be able to use Appery.io visual data mapper, this post shows how to do it. It uses a Generic Service to get data from the database.
We just published a new step-by-step tutorial on using the File API and User Management. Give it a try and let us know what you think.
Building RSS APP in Appery.io tutorial from Green Machine.
As you probably know, we launched Appery.io Database a few weeks ago. In addition to docs, we just published a tutorial on how to build an app connected to Appery.io Database. You will learn: