DJISDKRegistrationError

enum DJISDKRegistrationError : NSInteger {}

The Error of SDK Registration

  • The application is not able to connect to the internet the first time it registers.

    Declaration

    Objective-C

    DJISDKRegistrationErrorCouldNotConnectToInternet = -1L
  • The application key you provided is incorrect.

    Declaration

    Objective-C

    DJISDKRegistrationErrorInvalidAppKey = -2L
  • The network you are trying to reach is busy, or the server is unreachable.

    Declaration

    Objective-C

    DJISDKRegistrationErrorHTTPTimeout = -3L
  • The attempt to copy meta data from another registered device to the device that is currently connected is not allowed. For example, if a developer has two devices and the application is activated with the application key onto one of the devices, if the other device is plugged in and tries to register the application, this error will occur.

    Declaration

    Objective-C

    DJISDKRegistrationErrorDeviceDoesNotMatch = -4L
  • The bundle identifier of your application does not match the bundle identifier you registered on the website when you applied to obtain an application key.

    Declaration

    Objective-C

    DJISDKRegistrationErrorBundleIdDoesNotMatch = -5L
  • The application key is prohibited. This occurs when an application key that has already been released by DJI is revoked. Please contact DJI for assistance.

    Declaration

    Objective-C

    DJISDKRegistrationErrorAppKeyProhibited = -6L
  • There is a maximum number of devices one application key can be used to activate. The maximum number of devices is given when an application is registered on the DJI developer website. This error will occur if the maximum number of activations has been reached.

    Declaration

    Objective-C

    DJISDKRegistrationErrorMaxActivationCountReached = -7L
  • This error occurrs when an application key was given for a specific platform and is trying to be used to activate an application for another platform. For instance, if an application key was given for an iOS applicationa and is used to activate an Android application, this error will occur.

    Declaration

    Objective-C

    DJISDKRegistrationErrorAppKeyInvalidPlatformError = -8L
  • The application key does not exist. Please make sure the application key you are entering is correct.

    Declaration

    Objective-C

    DJISDKRegistrationErrorAppKeyDoesNotExist = -9L
  • There are two levels for the SDK framework, level 1 and level 2. If an application key was given under one level and is trying to be used to active an application using another level SDK framework, this error will occur.

    Declaration

    Objective-C

    DJISDKRegistrationErrorAppKeyLevelNotPermitted = -10L
  • There is a server error. Please contact DJI for assistance.

    Declaration

    Objective-C

    DJISDKRegistrationErrorServerParseFailure = -11L
  • There is a server error. Please contact DJI for assistance.

    Declaration

    Objective-C

    DJISDKRegistrationErrorServerWriteError = -12L
  • There is a server error. Please contact DJI for assistance.

    Declaration

    Objective-C

    DJISDKRegistrationErrorServerDataAbnormal = -13L
  • The activation data received from server is invalid. Please reconnect to the internet and try again.

    Declaration

    Objective-C

    DJISDKRegistrationErrorInvalidMetaData = -14L
  • No application key was inputted.

    Declaration

    Objective-C

    DJISDKRegistrationErrorEmptyAppKey = -15L
  • An unknown error occurred when the application was trying to register. Please contact DJI for assistance.

    Declaration

    Objective-C

    DJISDKRegistrationErrorUnknown = -999L