iOS SDK

The iOS SDK simplifies connecting to Schibsted Account. To learn more about the SDK, the full documentation can be found here.

For support, please contact schibstedaccount@schibsted.com

Getting started

Reference the pod

You will need to add the following sources to your podfile to include the pod SchibstedID - source "git@github.schibsted.io:CocoaPods/Specs.git,": for SchibstedID

The SDK is divided in to different subspecs:

  • pod 'SchibstedID': this is the default
  • pod 'SchibstedID/UI': will add the UI component

You must include a tracking subspec as well

The UI does some internal tracking, and requires a TrackingEventsHandler be set in the UI's configuration. To fulfill this, you must either implement it yourself or use one which is already implemented.

To use the SchibstedIDTracking implementation, you may include the following in your podfile

  • pod 'SchibstedID/Tracking/Pulse': Adds dependency to the new Pulse SDK.

Get some client credentials

The SDK works by giving you access to Schibsted account users. What kind of access is allowed is determined by a set of client credentials. The first thing you must do is get some credentials, which can be done through Self Service. Learn about environments and merchants. The SDK will not work accross environments or merchants.

Building the example application

In CocoaPods-based projects you work within the project of the example application, which is located in the Example directory.

To install the necessary dependencies and open the project in Xcode:

./pod_install.sh
open Example/SchibstedID.xcworkspace

In Xcode, run the application using ⌘R (Product - Run). Make sure that the SchibstedID-Example scheme is selected.

Native web development

Help us improve

Did you spot an error? Or maybe you just have a suggestion for how we can improve? Leave a comment, or better yet, send us a pull request on GitHub to fix it (in-browser editing, only takes a moment).

History of this page

Comments/feedback

Do you have questions, or just want to contribute some newly gained insight? Want to share an example? Please leave a comment. SPiD reads and responds to every question. Additionally, your experience can help others using SPiD, and it can help us continuously improve our documentation.