License Integration Guide

Updated at:
Copy as MD

The Push SDK requires a license to enable stream ingest. Learn how to obtain and integrate the Push SDK license.

All-in-one license

The Push SDK uses the all-in-one license service from ApsaraVideo, which authorizes multiple SDKs for your app, such as the Push SDK and Queen SDK. The LicenseKey and LicenseFile (certificate file) are shared across all services that use the all-in-one license, so you only need to configure them once. Make sure to use the latest certificate file.

Apply for a license

For instructions, see All-in-one license authorization.

Configure the license

Configure the license on Android

  1. (Recommended) Copy the license file to the assets directory in your Android Studio project.

    Note

    You can also copy the license file to another location. However, you must make sure that the value of com.aliyun.alivc_license.licensefile in Step 2 matches the path of the license file.

  2. Add a <meta-data> node to the AndroidManifest.xml file.

    Important

    If license verification fails after configuration, check whether the <meta-data> node is under the <application> element and whether the name attribute of the <meta-data> node is correct.

    image

    <meta-data
        android:name="com.aliyun.alivc_license.licensekey"
        android:value="foIV**************************************"/>  <!-- TODO: Set your LicenseKey value-->
    <meta-data
        android:name="com.aliyun.alivc_license.licensefile"
        android:value="assets/cert/release.crt"/>  <!-- TODO: Set your LicenseFile path-->

Configure the license on iOS

  1. Copy the license file to the specified directory in your Xcode project, and select the current project in Target Membership.

    image.png

  2. Open Info.plist. Set AlivcLicenseKey to your license key and AlivcLicenseFile to the path of your license file.

Integrate the license on Flutter

For Flutter applications, integrate the native licenses for each target platform. For more information, see Configure the license on Android or Configure the license on iOS.

Related documents