Menu

Playbasis Android SDK introduction

Playbasis Android SDK was initially designed to give developers flexibility and ease in integration into their own application.

Developers see Playbasis Android SDK as a library to help them quickly understand data responded (json format) back from Playbasis platform, and be able to quickly develop their own application.

Playbasis Android SDK consists of the following major components to help developers

1. Set of API calls interacting with Playbasis platform

Set of API calls are used to interact with Playbasis platform ie. logging in user, execute an action on behalf of certain user, register user, give user a reward etc.

As well, mobile application development on iOS, developers have to be aware of user experience (UX) thus having to deal with which thread to interact with to update UI elements or process tasks are among the top things to consider in development.

Playbasis takes this into account and exposes set of API call in different manners of thread situations. Consider API call to log in a certain user to Playbasis platform.

API Call:

Developers can see all API call at http://doc.playbasis.com/pbapp/.

One API call will consist of at least 4 method calls which can be used in various situations, with additional of one another method call to make a request with asynchronous url request to Playbasis platform.

Playbasis platform supports the following request

  • Synchronous URL Request
    Playbasis server receives a request from users, then respond back whether or not the request has been executed successfully or there might be some data that needed to be returned back. This is a normal case of request type.
  • Asynchronous URL Request
    In certain cases, developers might need to just send a request to Playbasis server without a need to waiting for its responded data. This means developers just want to send out requests and do something else on their own application. Playbasis platform supports this type of request. It will receive a request then execute it immediately on behalf of Playbasis server, minimum time has been used along with the process. See more information in the section “Asynchronous Requests” at http://dev.playbasis.com/docs.php.

To avoid confusion, we have to point out that the we won’t use Asynchronous method call (as seen in the code) to describe Asynchronous URL Request. In terms of SDK, asynchronous method call can either make a synchronous url request, or asynchronous url request. Whenever we want to make a request with asynchronous url request, we will explicitly tell it as “asynchronous url request”.

2. Integrated with basic open source UI projects

Playbasis Android SDK integrated a couple of basic UI popups projects which are open source and highly adopted by Android developers out there. This will reduce time if developer might need to integrate it into their own application. They can use it through our SDK.