cordova-plugin-inapppurchase
cordova-plugin-inapppurchase copied to clipboard
iOS IAP: Unknown product identifier (errorCode: 100)
Hi,
some users of my ionic app (in store since july '17) have issues when trying to buy products from the app store. It worked correctly some months ago but now they are getting an Unknown product identifier error (errorCode: 100).
I did not release a new version in between so i have no idea why this function stopped working for some users.
I'm grateful for any information.
Regards
Patrick
Please include:
Your code / steps to reproduce
i can't reproduce it =(
Console output
{ "error": { "errorMessage": "Unknown product identifier", "errorCode": 100 } }
Type of product you are working with consumable/non-consumable/subscription
non-consumable
Version of cordova
Version of iOS/Android
Having the same trouble
Any Solution?
any solution ?
same trouble :(
any solutions?? I have same error.
I haven't found a solution until we removed the app from the stores end of last year...
Sorry i can't help you :(
I've found that reading in an array of products first before calling .buy() or .subscribe() did the trick for me. Example:
inAppPurchase.getProducts(["1", "2", "3", ...])...
As per the readme:
Retrieves a list of full product data from Apple/Google. This function must be called before making purchases.