The Clinch iOS SDK supports iOS 8.x.
-
Copy the
ClinchKit.framework
to your Xcode project (you can get it from GitHub). -
Add
ClinchKit.framework
to theEmbedded Binaries
section in your application target. You'll findEmbedded Binaries
in theGeneral
section of the target. -
Link to the following frameworks:
CoreData
-
If you plan on using the built-in iBeacons support, link to the
CoreLocation
framework.
Add the ClinchKit pod into your Podfile and run a pod install
or pod update
command.
pod `ClinchKit`
Note: There is an issue with CocoaPods and dynamic binary frameworks; of which ClinchKit is one. (See CocoaPods/CocoaPods#1993 and CocoaPods/CocoaPods#3277 for more info).
Until this works, you'll be better off using the manual installation method.
You'll need your ClinchKit app id and api key that can be requested from [email protected]. Once you've your keys, initialize ClinchKit by calling the following in your application's delegate.
ClinchKit.setApiKey(key: "<#your_api_key#>")
ClinchKit.setApiSecret(secret: "<#your_api_secret#>")
If you'd like to share ClinchKit between your app and extensions (for example, a Today widget), then you'll need to tell ClinchKit about your App Group Identifier (available from your Apple Developer Provisioning Center).
ClinchKit.setAppGroupIdentifier(appGroupIdentifier: "<#group.your_group_identifier#>")
ClinchKit uses Keychain to securely store a users credentials, which are used to cryptographically sign each API call to ensure security. If you use ClinchKit between a few apps or between an app and extensions, you'll need to set your Keychain Access Group, so that ClinchKit running in each app will be able to access your users credentials.
ClinchKit.setKeychainAccessGroup(accessGroup: "<#your_team_id.your_access_group#>")
In order to track potential candidates interaction with your app, you must first register them:
ClinchKit.registerUserWithEmail: <#emailAddress#>
or if you don't know their email address, via a unique identifier:
ClinchKit.registerUserWithId: <#userId#>
To show an application form for your company (apply directly to company and not a specific job):
ClinchKit.showApplicationForm(job: nil)
To show an application form for a specific job in your company:
ClinchKit.showApplicationForm(job: '<#job_slug#>')
ClinchKit supports push notifications to notify your users of important events, such as, new job positions. To register a device for push notifications, place the following in your didRegisterForRemoteNotificationsWithDeviceToken
call in your application delegate:
ClinchKit.setDeviceToken(token: <#deviceToken#>)
ClinchKit supports iBeacon's to attract candidates in a unique way from your mobile app users population. Beacons show up as a channel within your Clinch web console, where they can be configured.
To enable iBeacon support:
ClinchKit.enableBeaconSupport()
To set a branding tint color for ClinchKit UI components:
ClinchKit.setTintColor(color: <#UIColor#>)
To set a branding logo (max size: 300px x 300px):
ClinchKit.setLogo(logo: <#UIImage#>)
If you have any questions or queries, support is just an email (or in-app request) away at [email protected]