Skip to content

passslot/passslot-ios-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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