Below is a list of steps neccessary to hook-up your application to the proxi.cloud service using a legacy open source Sensorberg SDK which also can work with the proxi.cloud proximity panel.

These instructions are presented for backward compatibility purposes. We reccomend using the official proxi.cloud SDK for Android for all new and existing projects.

  1. Integrate the open source SDK according to these instructions
  2. Change the endpoint to cdn.proxi.cloud by inserting the following code into into your main app file:

     static {
         RetrofitApiTransport.RESOLVER_BASE_URL = "https://cdn.proxi.cloud";
     }
    
  3. Make sure that you compile in a correct version of Google play services (if you are not using them already) - this is required for geofencing to work.

     compile 'com.google.android.gms:play-services-location:10.2.0'
    
  4. Add support for Advertising identifier. Example from our showcase app below:

     // running on a background thread due to networking
     new Thread(new Runnable() {
         @Override
         public void run() {
             try {
                 AdvertisingIdClient.Info info = AdvertisingIdClient.getAdvertisingIdInfo(context);
                 // boot is the instance of ShowcaseBootstrapper instantiated during Application.onCreate()
                 MyApp.getInstance().bootStrapper.setAdvertisingIdentifier(info.getId());
             } catch (IOException e) {
                 Log.e(TAG, "Could not fetch advertising id", e);
             } catch (GooglePlayServicesNotAvailableException e) {
                 Log.e(TAG, "Could not fetch advertising id, Google Play Service not available", e);
             } catch (GooglePlayServicesRepairableException e) {
                 Log.e(TAG, "Could not fetch advertising id, Google Play Service need repairing", e);
             } catch (Exception e) {
                 Log.e(TAG, "Could not fetch advertising id", e);
             }
         }
     }).start();
    
  5. Remember about runtime permissions required in Android 6 onwards (information here)