By downloading any content you agree to abide by the terms of the license
Download the Proximity Kit framework
Once you have downloaded and unzipped the framework simply drag ProximityKit.framework
to your application's project in Xcode.
And ensure that it is being added to the necessary targets.
We recommend installing the framework manually. However, if you are using Cocoapods to manage dependencies, you can also use it to install the ProximityKit Framework.
Add ProximityKit
to your Podfile
:
platform :ios
pod 'ProximityKit'
Then run:
$ pod install
Add the RPKManagerDelegate
protocol to the AppDelegate
In AppDelegate.h
:
class AppDelegate: UIApplicationDelegate, RPKManagerDelegate
Add a property for the manager and create it with the configuration. Create the manager and pass in the config.
let rpkManager = RPKManager(delegate:self, andConfig:[
"kit_url": "https://proximitykit.radiusnetworks.com/api/kits/MY_KIT_ID",
"api_token": "MY_KIT_SDK_TOKEN",
]);
The Kit URL and Token can be obtained on the "Settings" page of your kit.
Add the RPKManagerDelegate
protocol to the AppDelegate and add a property for the RPKManager
:
In AppDelegate.h
:
@interface AppDelegate : UIResponder <UIApplicationDelegate, RPKManagerDelegate>
@property RPKManager *pkManager;
@end
Create the manager and pass in the config.
self.pkManager = [RPKManager managerWithDelegate:self andConfig:@{
@"kit_url": @"https://proximitykit.radiusnetworks.com/api/kits/MY_KIT_ID",
@"api_token": #"MY_KIT_SDK_TOKEN",
}];
The Kit URL and Token can be obtained on the "Settings" page of your kit.
Now that you have Proximity Kit installed and configured, you need to integrate it with your app. Check out the getting started guide for the next steps.
General information can be found in our API Overview Documentation.