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 enumDescription
QONAPIErrorFailedParseResponse (1)ParseResponseFailedThe response has wrong format
QONAPIErrorInternalError (3)BackendErrorThere was an internal backend error
QONAPIErrorUnknown (4)UnknownErrorAn unexpected error occurred that can't be classified
QONAPIErrorInvalidCredentials (5)InvalidCredentialsAccess token is invalid or not set
QONAPIErrorInvalidClientUID (6)InvalidClientUidClient Uid is invalid or not set
QONAPIErrorUnknownClientPlatform (7)UnknownClientPlatformThe current platform is not supported
QONAPIErrorFraudPurchase (8)FraudPurchaseFraud purchase was detected
QONAPIErrorFeatureNotSupported (9)FeatureNotSupportedThe requested feature is not supported
QONAPIErrorAppleStoreError (10)PlayStoreErrorThere was an issue with the Play Store / Apple Store service. For example, Store is unavailable or returns an incorrect response or unexpected error without details.
QONAPIErrorPurchaseInvalid (11)PurchaseInvalidFailure of purchase. For example, a purchase with such purchaseToken can't be found. Possible reason: provided store key exists, but related to another project.
QONAPIErrorProjectConfigError (12)ProjectConfigErrorThe project is not configured or configured incorrectly in the Qonversion's settings dashboard.
Check the details here
QONAPIErrorInvalidStoreCredentials (13)InvalidStoreCredentialsThis account does not have access to the requested application. Please check the provided Store keys.

Check the details here
QONAPIErrorReceiptValidation (14)Provided receipt can't be validated. Check the details here

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 cancelled 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 Product not found error here.
QONErrorClientInvalid (3)Apple StoreKit SKErrorClientInvalid error analog.
Client is not allowed to issue the request, etc.
QONErrorPaymentInvalid (4)Apple StoreKit SKErrorPaymentInvalid error analog.
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 request.
QONErrorStoreProductNotAvailable (7)Apple StoreKit SKErrorStoreProductNotAvailable
error analog.
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

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)Provided shared secret is incorrect, validation 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.

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.

TitleDescription
UnknownErrorAny error with no specific details available. These errors may include undefined Throwable errors and Google Billing Client errors.
PlayStoreErrorThere was an issue with Play Store service.

This error appears when the Google Billing client timed out, disconnected or unavailable.
BillingUnavailableThe Billing service is unavailable on the device. Please see the details here.
PurchaseInvalidFailure to purchase. Please make sure 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.
CanceledPurchaseThe user pressed back or canceled a dialog for purchase.
ProductNotOwnedFailure to consume purchase since the item is not owned.
ProductAlreadyOwnedFailure to purchase since the item is already owned.
FeatureNotSupportedThe requested feature is not supported by Play Store on the current device.
ProductUnavailableThe requested product is not available for purchase. Please see the details here.
NetworkConnectionFailedThere was a network issue. Please make sure that the Internet connection is available on the device.
ParseResponseFailedA problem occurred when serializing or deserializing data.
BackendErrorThere was a backend error. Please see QonversionError.additionalMessage for detailed error information.
ProductNotFoundFailure to purchase since the Qonversion product was not found. Please see the details here.
OfferingsNotFoundOfferings were not found.
Make sure you have created and configured the offerings on the Qonversion Product Center dashboard.
LaunchErrorThere was an error on launching Qonversion SDK.
SkuDetailsErrorFailure to retrieve SkuDetails for the in-app product ID. Please make sure that the products were configured correctly in Google Play Console. Please see the details here.

Here is an example how you can get the errors 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.