Message:

Examples (16 posts)

Video broadcasting and streaming is one of the coolest features of Backendless. Our Media Service API enables client-server functionality for working with live and on-demand audio and video content. A mobile application which uses the Media Service API can broadcast audio and video from the device’s cameras and microphone. Backendless automatically handles streaming of the received media content to other clients or recording of the content on the server. The API can also support the capability to stream a pre-recorded (on-demand) content managed by the Media Service. More details about these features are available in the Media Service documentation.

This post describes how to build an iOS application using the Swift language. The app will record a video on the server and then subsequently play it back.

Continue reading

In my previous post I reviewed the user registration API. Now that you know how to use the registration API and have a registered user, the next step is to review the login functionality. The video below focuses on the apps’ login screen and the Backendless Login API.

In the video below I review the code for the User Registration screen of the RestaurantToGo sample app. Additionally, I discuss the usage of the Backendless Registration API. In the previous post and video, I reviewed the process of setting up the development environment for the application.

Earlier this year I wrote about building a sample to demonstrate various APIs of the platform. There is also a post describing the database schema and app’s storyboard. The application is now ready and I will be posting a video tutorial detailing every step of building an app, including the following:

  1. Development environment setup
  2. User registration screen and API
  3. Login screen and API
  4. Using Backendless code generation for Android
  5. Retrieving and displaying data (listing of restaurants, locations and menus)
  6. Order summary and order confirmation

At the end of the tutorial, you will know how to build a data-driven app with Backendless, how to use the User Service APIs (registration, login, email confirmation), with with the relational persistent data, use Backendless console to manage data objects.

Below is an introductory video where you can see the complete app in action.

Posted in Android, Examples

A few posts ago I published a proposed schema for the database design for a sample app which can process mobile to–go orders. As the first step in building the application, I put together a rather simplistic user interface mockup for the future app. You can see the mockup below:

The UI is not a distant departure from the database schema. The only change I can think of is the introduction of the “cuisine type” for the Restaurant entity. See the updated schema below:

The next step will be a series of posts where we design the client-side of the app for Android and iOS. Additionally, we will be exploring and reviewing various Backendless features as we move along.

Posted in Examples

As we are progressing with the feature a day blog series, I thought it would be a good idea to come up with a fictional app which I could use in the feature posts. The idea for the app I will use as an example is a restaurant ordering system. Using the app a customer (who would need to register and login) can choose a restaurant, browse the menu and submit an order. A restaurant owner would be able to login and see the orders. Additionally, the owner would be able to run a report to calculate daily revenue. The design for the app will be evolving as we go, however to start with something I put together a class diagram which shows the core entities present in the system:

There are plenty of things we can add to the application. I can think of restaurant/menu recommendations, customer reviews, integration with payment systems, etc. This should be fun!

Back for round #2, eh? (if you missed the first post which was about registering users, read it here) Well, let’s dive in. This one should be pretty quick.

The following code is pretty well commented, ping me if you have any questions.

This should bring back something similar to:

Notice the Backendless specific things, we didn’t create those fields in our previous post when we added this user to the database.

  • objectId
  • userStatus

Don’t panic, Backendless adds these automatically. Here’s our expected fields we created in the first post:

  • username
  • email
  • password…..wait, what the?!?! Where’s the password?!

I was expecting to be able to see the password when we query the user info, however, for security Backendless encrypts the password info in a one-way method that even they (or you as the admin of your user table) can’t retrieve. If a user forgets their password, you’ll have to build in the functionality for them to reset it.

I don’t have all the answers, so I hit up their great community and got a response. Check my post here for a more in depth explanation of their encryption.

How do you get the data to compare what the user is entering VS what’s stored on the backend? That’s where the login functionality comes in to play. We’ll hit that up in the next post.

My mission is to keep these posts nice and bite-sized. I don’t want to overwhelm you with tons of functionality. I’m mirroring Backendless’s docs for the REST API.

See you soon!

Mario

Establishing relations between user objects and other entities in an application is a very common use case. This post describes various scenarios and shows sample code using Backendless SDK for Java/Android and Backendless SDK for iOS. Make sure the version of the client libraries are at least 1.5 for Backendless Java/Android and 1.11 for iOS.

Continue reading
Posted in Android, Examples, iOS

Tizen is an open source platform residing within the Linux Foundation. It includes an operating system which can run smartphones, tablets, netbooks, onboard devices in smart cars as well as smart TVs. We wanted to see what it would take to integrate a Tizen app with Backendless because the benefits of such integration would be huge. For instance, data can be easily shared between different implementations of an app: a Tizen version of the app can easily communicate with the one running on Android or iOS by the means of Backendless service APIs.

Continue reading

We just published an Android sample application to Google Play. The application demonstrates the usage of various Backendless APIs for some real-world use-case you may be implementing in your app. The application allows anyone to take a picture or use one from the gallery, upload it to the server and associate the picture with a point on the map (tag). Users can browse uploaded pictures by moving/zooming the map. For any picture/tag you can see a list of comments and submit your own comment as well. The application source code specifically demonstrates how to handle the following use-cases:

  • User registration and login
  • User login with Facebook or Twitter accounts
  • Retrieving a list of geo points and plotting them on the map
  • Taking a picture with the device’s camera
  • Selecting a picture from the device’s gallery
  • Uploading/Downloading images to/from Backendless
  • Establishing relational mapping between uploaded images and submitted comments
  • Using Data Service to submit and load user comments

You can find the app in Google Play if you search for “Endless Tagging” or simply follow the link below:
https://play.google.com/store/apps/details?id=com.backendless.examples.endless.tagging

The source code of the application is available in our GitHub repository:
https://github.com/Backendless/EndlessTagging-Android

Posted in Android, Examples