Ping SDKs

Installing the DaVinci client

Applies to:

  • DaVinci client for Android

  • DaVinci client for iOS

  • DaVinci client for JavaScript

You need to install the DaVinci client module into your application to use its functionality.

The method you use to install the module depends on which platform you are using.

Installing the DaVinci client for Android

To install the DaVinci client into your Android app:

  1. In the Project tree view of your Android Studio project, open the build.gradle.kts file.

  2. In the dependencies section, add the following:

    // Ping SDK social sign-on dependencies
    implementation("com.pingidentity.sdks:davinci:1.1.0")

Installing the DaVinci client for iOS

You can use Swift Package Manager (SPM) or CocoaPods to add the DaVinci client to your iOS project.

  • Swift Package Manager

  • CocoaPods

  1. With your project open in Xcode, select File > Add Package Dependencies.

  2. In the search bar, enter the Ping SDK for iOS repository URL: https://github.com/ForgeRock/ping-ios-sdk.

  3. Select the ping-ios-sdk package, and then click Add Package.

  4. In the Choose Package Products dialog, ensure that the PingDavinci and PingExternalIdp libraries are added to your target project.

  5. Click Add Package.

  6. In your project, import the library:

    import PingDavinci
  1. If you do not already have CocoaPods, install the latest version.

  2. If you do not already have a Podfile, in a terminal window, run the following command to create a new Podfile:

    pod init
  3. Add the following lines to your Podfile:

    pod 'PingDavinci'
  4. Run the following command to install pods:

    pod install

Installing the DaVinci client for JavaScript

The DaVinci client for JavaScript as available as an npm module at @forgerock/davinci-client.

To install the module into your JavaScript project, run the following npm command:

npm install @forgerock/davinci-client@1.1.0

After installation, import the module into your app as follows:

import { davinci } from '@forgerock/davinci-client';

Next Steps

After installing the DaVinci client, you should configure it to connect to your server.