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 oficial proxi.cloud SDK for IOS for all new and existing projects.

Step-by-step guide

  1. Integrate Sensorberg open source SDK (Instructions)
  2. Change the endpoint to cdn.proxi.cloud by inserting the following code into into your main app file. Example in Objective-C:

     PUBLISH(({
         	SBEventUpdateResolver *updateEvent = [SBEventUpdateResolver new];
         	updateEvent.baseURL = @"https://cdn.proxi.cloud";
         	updateEvent.interactionsPath    = @"/api/v2/sdk/gateways/{apiKey}/interactions.json";
         	updateEvent.analyticsPath       = @"/api/v2/sdk/gateways/{apiKey}/analytics.json";
         	updateEvent.settingsPath        = @"/api/v2/sdk/gateways/{apiKey}/settings.json?platform=ios";
         	updateEvent.pingPath            = @"/api/v2/sdk/gateways/{apiKey}/active.json";
         	updateEvent;
     	}));
    

    and Swift:

     SBManager.shared().setApiKey(Constants.APIKeys.kSensorberg, delegate: self)
     
     // Required to use new panel
     let eventUpdateResolver = SBEventUpdateResolver()
     eventUpdateResolver.baseURL = "https://cdn.proxi.cloud"
     eventUpdateResolver.interactionsPath = "/api/v2/sdk/gateways/{apiKey}/interactions.json"
     eventUpdateResolver.analyticsPath = "/api/v2/sdk/gateways/{apiKey}/analytics.json"
     eventUpdateResolver.settingsPath = "/api/v2/sdk/gateways/{apiKey}/settings.json?platform=ios"
     eventUpdateResolver.pingPath = "/api/v2/sdk/gateways/{apiKey}/active.json"
     Tolo.sharedInstance().publish(eventUpdateResolver)
    
  3. Implement AdSupport library (details here) to enable support for IDFA collection

  4. Pass the IDFA value to SDK using setIDFAvalue():

     if let aaid = ASIdentifierManager.shared().advertisingIdentifier {
         DDLogInfo("Successfully get AAID: \(aaid.uuidString)")
             SBManager.shared().setIDFAValue(aaid.uuidString)
             } else {
     	DDLogWarn("Error with getting advertisingIdentifier, should check AAID later")
     	}