Discussions

Ask a Question
Back to All

I have implemented Qonversion sdk in android app , facing playStoreError in QonversionEntitlementsCallback on calling Qonversion.shared.purchase method , how to fix this error

Qonversion.shared.purchase(this, product, callback = object: QonversionEntitlementsCallback {
override fun onSuccess(entitlements: Map<String, QEntitlement>) {
val premiumEntitlement = entitlements["premium"]
if (premiumEntitlement != null && premiumEntitlement.isActive) {

override fun onError(error: QonversionError) {
    
    if (error.code === QonversionErrorCode.CanceledPurchase) {
       
    }
}

})