Android – Integration checklist

The following checklist ensures the successful integration of the Bluedot Android SDK into your app. Please make sure every step has been completed before you attempt to run your app.

1.  Login to your Bluedot account and create a Project; don’t forget to keep your API key, package name and email address handy.
2.  Integrate Android Point SDK as a Gradle dependency of your app project as mentioned here.
3.  Get the instance of ServiceManager via the static method, with getInstance passing the context.
4.  Subscribe for Application Notifications if you have created a Zone in Canvas, as shown below:

public class BDTestApplication extends Application implements ServiceStatusListener,ApplicationNotificationListener{
    public void onBlueDotPointServiceStartedSuccess() {

5. Before starting the Point Service, check if it is already running via the isBlueDotPointServiceRunning method in ServiceManager.
6. Implement the ServiceStatusListener in your Application; pass it to the sendAuthenticationRequest in ServiceManager to start Bluedot Point Service in the onCreate callback with your credentials from step 1:

mServiceManager = ServiceManager.getInstance(this);
    mServiceManager.sendAuthenticationRequest("API KEY", this);

7. Write your app logic code in onBlueDotPointServiceStartedSuccess. Do not forget to handle errors if something goes wrong by utilizing the onBlueDotPointServiceError callback.
8. To unsubscribe the ApplicationNotificationListener , call the unsubscribeForApplicationNotification method in the ServiceManager.
9. Finally, you have to shut down the Bluedot Point Service when your app finishes with it by calling the stopPointService method in ServiceManager.

Created by Bluedot DevOps on June 19, 2018

Start the discussion