Qonversion SDK Errors Details

SDK API Interaction Errors

Here you can find the descriptions of errors that may be returned from SDK while interacting with the Qonversion backend. These descriptions are intended to help you troubleshoot any issues quicker.

🚧

Make sure to use a device (not a simulator) when testing iOS purchases.

iOS enum (Int value)

Android enum

Description

QONAPIErrorFailedParseResponse (1)

ParseResponseFailed

The response has the wrong format

QONAPIErrorInternalError (3)

BackendError

There was an internal backend error

QONAPIErrorUnknown (4)

UnknownError

An unexpected error occurred that can't be classified

QONAPIErrorInvalidCredentials (5)

InvalidCredentials

The access token is invalid or not set

QONAPIErrorInvalidClientUID (6)

InvalidClientUid

Client Uid is invalid or not set

QONAPIErrorUnknownClientPlatform (7)

UnknownClientPlatform

The current platform is not supported

QONAPIErrorFraudPurchase (8)

FraudPurchase

Fraud purchase was detected

QONAPIErrorFeatureNotSupported (9)

FeatureNotSupported

The requested feature is not supported

QONAPIErrorAppleStoreError (10)

PlayStoreError

There was an issue with the Play Store / Apple Store service. For example, the Store is unavailable or returns an incorrect response or unexpected error without details.

QONAPIErrorPurchaseInvalid (11)

PurchaseInvalid

Failure of purchase. For example, a purchase with such purchaseToken can't be found. Possible reason: the provided store key exists, but is related to another project.

QONAPIErrorProjectConfigError (12)

ProjectConfigError

The project is not configured or configured incorrectly in Qonversion's settings dashboard.
Check the details here

QONAPIErrorInvalidStoreCredentials (13)

InvalidStoreCredentials

This account does not have access to the requested application. Please check the provided Store keys.

Check the details here

QONAPIErrorReceiptValidation (14)

The provided receipt can't be validated. Check the details here

QONAPIErrorRateLimitExceeded (15)

ApiRateLimitExceeded

There were too many parallel or subsequent requests to the Qonversion API in a while.

iOS Errors Codes

Qonversion SDK provides error codes that help locate and eliminate possible issues. Most Qonversion errors for iOS correspond to StoreKit SKError objects. You can check the errors described in the table below in QNErrors.h file.

Error enum value (Error Int value)

Description

QONErrorUnknown (0)

Unknown error occurred

QONErrorCancelled (1)

Apple StoreKit
SKErrorPaymentCancelled
error analog.
The user canceled the purchase/restore request, etc.

QONErrorProductNotFound (2)

This error means that for some reason the product is not found.
There are a few reasons you can receive this error.
See the details for the Product not found error here.

QONErrorClientInvalid (3)

Apple StoreKit SKErrorClientInvalid error analog.
The client is not allowed to issue the request, etc.

QONErrorPaymentInvalid (4)

Apple StoreKit SKErrorPaymentInvalid error analog.
The purchase identifier was invalid, etc.

QONErrorPaymentNotAllowed (5)

Apple StoreKit SKErrorPaymentNotAllowed error analog.
This device is not allowed to make the payment.

QONErrorStoreFailed (6)

Apple Store didn't process the request.

QONErrorStoreProductNotAvailable (7)

Apple StoreKit SKErrorStoreProductNotAvailable
error analog.
The product is not available in the current storefront.

QONErrorCloudServicePermissionDenied (8)

Apple StoreKit SKErrorCloudServicePermissionDenied error analog.

Available from iOS 9.3, TV OS 9.3, Watch OS 6.2, Mac OS 11.0

The user has not allowed access to Cloud service information.

QONErrorCloudServiceNetworkConnection-
Failed
 (9)

Apple StoreKit SKErrorCloudServiceNetworkConnection-
Failed error analog.

Available from iOS 9.3, TV OS 9.3, Watch OS 6.2, Mac OS 11.0

The device could not connect to the network.

QONErrorCloudServiceRevoked (10)

Apple StoreKit SKErrorCloudServiceRevoked error analog.

Available from iOS 10.3, TV OS 10.3, Watch OS 6.2, Mac OS 11.0

The user has revoked permission to use this cloud service.

QONErrorPrivacyAcknowledgementRequired (11)

Apple StoreKit SKErrorPrivacyAcknowledgementRequired error analog.

Available from iOS 12.2, TV OS 12.2, Watch OS 6.2, Mac OS 10.14.4

The user needs to acknowledge Apple's privacy.

QONErrorUnauthorizedRequestData (12)

Apple StoreKit SKErrorUnauthorizedRequestData error analog.

Available from iOS 12.2, Watch OS 6.2, Mac OS 10.14.4

The app is attempting to use SKPayment's requestData property but does not have the appropriate entitlement.

QONErrorIncorrectSharedSecret (13)

The provided shared secret is incorrect, validation is unavailable.
See more info here

QONErrorConnectionFailed (14)

Failed to connect to Qonversion back-end.

QONErrorInternetConnectionFailed (15)

Other URL Session errors of NSURLErrorDomain enum.

QONErrorDataFailed (16)

Network data error.

QONErrorInternalError (17)

Internal error occurred.

QONErrorStorePaymentDeferred (18)

The payment transaction is in the queue, but its final status is pending external action.

QONErrorRemoteConfigurationNotAvailable (19)

Remote configuration is not available for the current user. Please ensure that the remote configuration is configured correctly in the Qonversion Dashboard.

Android Errors Codes

You can use both physical devices and emulators to test Android in-app purchases.
Qonversion SDK provides error codes that help locate and eliminate possible issues. The table below contains the descriptions of the possible errors.

📘

Error additional message

The field QonversionError.additionalMessage contains the detailed error information. If you see the following message: It is a proxy of the Google BillingClient error, please check Google's documentation on BillingClient.

Title

Description

Unknown

Any error with no specific details available. These errors may include undefined Throwable errors and Google Billing Client errors.

PlayStoreError

There was an issue with the Play Store service.

This error appears when the Google Billing client times out, disconnects or is unavailable.

BillingUnavailable

The Billing service is unavailable on the device. Please see the details here.

PurchaseInvalid

Failure to purchase. Please ensure that you are using the Google account where purchases are allowed and the application was correctly signed and properly set up for billing.
Please have a look at the following guide on setting up the Google Play Store Billing.

PurchaseCanceled

The user pressed back or canceled a dialog for purchase.

ProductNotOwned

Failure to consume purchase since the item is not owned.

ProductAlreadyOwned

Failure to purchase since the item is already owned.

FeatureNotSupported

The requested feature is not supported by the Play Store on the current device.

StoreProductNotAvailable

The requested product is not available for purchase. Please see the details here.

NetworkConnectionFailed

There was a network issue. Please make sure that the Internet connection is available on the device.

ParseResponseFailed

A problem occurred while serializing or deserializing data.

BackendError

There was a backend error. Please see QonversionError.additionalMessage for detailed error information.

ProductNotFound

Failure to purchase since the Qonversion product was not found. Please see the details here.

OfferingsNotFound

Offerings were not found.
Make sure you have created and configured the offerings on the Qonversion Offerings page.

LaunchError

There was an error while launching Qonversion SDK.

SkuDetailsError

Failure to retrieve SkuDetails for the in-app product ID. Please ensure that the products are configured correctly in the Google Play Console. Please see the details here.

RemoteConfigurationNotAvailable

Remote configuration is not available for the current user. Please ensure that the remote configuration is configured correctly in the Qonversion Dashboard.

Here is an example of how you can get the error details including additional error information, error code, and description:

Qonversion.getSharedInstance().products(new QonversionProductsCallback() {
    @Override
    public void onSuccess(@NotNull Map<String, QProduct> productsList) {
        // handle available products here
    }

    @Override
    public void onError(@NotNull QonversionError error) {
        // Additional error information (if possible)
        String additionalErrorMessage = error.getAdditionalMessage();
        // Error enum code
        QonversionErrorCode errorCode = error.getCode();   
        // Error enum code description
        String errorDescription = error.getDescription();             
        // Handle the error
    }
});
Qonversion.shared.products(object : QonversionProductsCallback {
    override fun onSuccess(products: Map<String, QProduct>) {
        // handle available products here
    }
    override fun onError(error: QonversionError) {
        // Additional error information (if possible)
        val additionalErrorMessage = error.additionalMessage 
        // Error enum code
        val errorCode = error.code 
        // Error enum code description
        val errorDescription = error.description 
        // Handle the error 
    }
})

Each Qonversion callback has the fun onError(error: QonversionError) where error information is available.