passslot ios sdk

Objective-C Framework (SDK) for easy Passbook integration

27
2
Objective-C

Samples

The PassSlot SDK now contains a demo application which can generate passes. You can find the sample in the samples/PassSlot Demo directory.

Cloud Service

The PassSlot SDK requires the PassSlot cloud service for signing passes. You can sign up for a free developer account at PassSlot.com.

Installation

You can install the PassSlot SDK either by using CocoaPods or add it yourself.

CocoaPods

Add a file Podfile to your project:

platform :ios, '6.0'

pod 'PassSlot'

For more information see CocoaPods

Manual

Step 1: Add the PassSlot.framework to your Project

Drag the PassSlot.framework folder into your project and add it to your target


Step 2: Add other Libraries

Link your binary with the following libraries:

  • PassKit
  • CFNetwork
  • Security
  • SystemConfiguration



Step 3: Add Linker Flags

Add -ObjC to your Other Linker Flags

Step 4: Import the PassSlot SDK Headers

Import the PassSlot headers where you need it.

#import <PassSlot/PassSlot.h>

NOTE: If you do not want to import PassSlot.h in every file you may add it into you pre-compiled header (<projectname>_Prefix.pch) file inside of the #ifdef __OBJC__ section

Step 5: Start PassSlot with your App Key

-(BOOL)application:(UIApplication *)application 
    didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    
    // ...
    [PassSlot start:@"<your app key>"];
    // ...
}

Attribution

This SDK is uses MKNetworkKit