Install the BlackBerry Dynamics SDK for Cordova

Visit BlackBerry Developer Downloads to download the BlackBerry Dynamics SDK for Cordova. When you click the link, you are prompted to log in to the Developer site with your BlackBerry Online Account. If you don’t already have an account, you can register and create one. Extract the BlackBerry Dynamics SDK for Cordova package to the desired project directory.
  1. If you are developing for Android, install the Android SDK.
  2. Integrate the BlackBerry Dynamics SDK for Android or iOS:

    SDK Platform

    Steps

    BlackBerry Dynamics SDK for Android

    Use the Base plug-in to download the BlackBerry Dynamics SDK for Android using Gradle.

    BlackBerry Dynamics SDK for iOS

    Use the Base plug-in to download the BlackBerry Dynamics SDK for iOS using CocoaPods. You must use the BlackBerry Dynamics SDK for iOS dynamic framework. The static framework is no longer supported.

    As of the BlackBerry Dynamics SDK for Cordova version 15.x, if you are using cordova-ios version 8.0.0 or later, you have the option to configure the Base plug-in to integrate the BlackBerry Dynamics SDK for iOS using Swift Package Manager instead of CocoaPods. To use Swift Package Manager, run the following command:

    $ cd <path>/BlackBerry_Dynamics_SDK_for_Cordova_v<X.X.X.X>/plugins/cordova-plugin-bbd-base
    $ node scripts/setDynamicsPodSpec.js --spm
    $ cd <path_to_your_app>
    // Remove Base plugin only if it was previously added
    $ cordova plugin rm cordova-plugin-bbd-base
    $ cordova plugin add <path>/BlackBerry_Dynamics_SDK_for_Cordova_v<X.X.X.X>/plugins/cordova-plugin-bbd-base
    $ cordova build

    You can switch back to the CocoaPods method by replacing --spm with --default.

    For additional information, see the BlackBerry Dynamics SDK Development Guide for the desired platform.

  3. If you are developing for Android, install the Android SDK/ADT bundle.
  4. If you are developing for iOS, install Xcode.
  5. Install Node.js.
    After the installation completes, the npm command is available in your terminal shell.