Integrate the Entitlements SDK
Integrate the Entitlements SDK into your application
Prerequisites
Get Started
Integrate the iOS SDK
To use the Entitlements SDK in an iOS app you need to install the SudoEntitlements
pod via Cocoapods.
If your project has not already been initialized for cocoapods, run the following command from the project's root directory
Open the Podfile file in a text editor and add
SudoEntitlements
pod as a dependency to the application
Install pod dependencies by running the following command
This will update the local CocoaPods repository and install the latest version of the Entitlements SDK.
In order to instantiate a Entitlements client, make sure you have followed instructions for Getting Started and User SDK (see Prerequisites above)
Client Initialization
To instantiate a client in your application, add the following
You only need one client instance for a given user per device. Instantiating multiple clients with the same configuration and using them at the same time may cause unexpected runtime errors to occur.
See it in action. Be sure to take a look at the open source iOS sample app on Github that our team published as a reference for integrating the Entitlements SDK into your app as quickly and seamlessly as possible.
Integrate the Android SDK
Add this line to the dependencies section of the app module build.gradle
and synchronize your project with Android Studio.
In order to instantiate a Entitlements client, make sure you have followed instructions for Getting Started and User SDK (see Prerequisites above)
Client Initialization
To instantiate a client in your application, add the following
You only need one client instance for a given user per device. Instantiating multiple clients with the same configuration and using them at the same time may cause unexpected runtime errors to occur.
See it in action. Be sure to take a look at the open source Android sample app on Github that our team published as a reference for integrating the Entitlements SDK into your app as quickly and seamlessly as possible.
Integrate the JavaScript SDK
The JavaScript SDK is open source and compatible with CommonJS module loading.
Add this line to the dependencies
section of your application's package.json
file.
In order to instantiate a Entitlements client, make sure you have followed instructions for Getting Started and User SDK (see Prerequisites above)
Client Initialization
To instantiate a client in your application, add the following
You only need one client instance for a given user per device. Instantiating multiple clients with the same configuration and using them at the same time may cause unexpected runtime errors to occur.
See it in action. Be sure to take a look at the open source JavaScript sample app on Github that our team published as a reference for integrating the Entitlements SDK into your web application as quickly and seamlessly as possible.
Last updated