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

These instructions are presented for backward compatibility purposes. We reccomend using the oficial 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 by inserting the following code into into your main app file. Example in Objective-C:

         	SBEventUpdateResolver *updateEvent = [SBEventUpdateResolver new];
         	updateEvent.baseURL = @"";
         	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";

    and Swift:

     SBManager.shared().setApiKey(Constants.APIKeys.kSensorberg, delegate: self)
     // Required to use new panel
     let eventUpdateResolver = SBEventUpdateResolver()
     eventUpdateResolver.baseURL = ""
     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"
  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)")
             } else {
     	DDLogWarn("Error with getting advertisingIdentifier, should check AAID later")