Skip to content
This repository has been archived by the owner on Oct 19, 2020. It is now read-only.

this.iap.buy( IN_APP_PRODUCT_ID ) does not work on ios 13 and above #285

Open
nawing opened this issue Dec 12, 2019 · 0 comments
Open

this.iap.buy( IN_APP_PRODUCT_ID ) does not work on ios 13 and above #285

nawing opened this issue Dec 12, 2019 · 0 comments

Comments

@nawing
Copy link

nawing commented Dec 12, 2019

IOS problem ::
works fine on ios 12
ios 13 and above gets error

After Setting Up Iap correctly this works on ios 12

        this.iap.buy( IN_APP_PRODUCT_ID )
        .then(( product ) =>
        {
          this.iap.consume(product.productType, product.receipt, product.signature)
          console.log ( '[ 1 ] ===================> ordered successful' )
        })
        .catch(( no ) =>
        {
          console.log ( '[ 1 ] ===================> ordered failed' )
        })

Console output

RMStore: unknown product id
RMStore: transaction failed with product [PRODUCTID] and error Error Domain=SKErrorDomain Code=2 "Cannot connect to iTunes Store" UserInfo={NSLocalizedDescription=Cannot connect to iTunes Store}
[ 1 ] ===================> ordered failed

Type of product you are working with consumable/non-consumable/subscription

subscription

Version of cordova

9.0.0

Version of iOS/Android

IOS platform ~5.1.1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant