AlexDisler / cordova-plugin-inapppurchase

A lightweight cordova plugin for in app purchases on iOS/Android
316 stars 192 forks source link

Multiple verification popup, no touchid #211

Open denkedaniel opened 6 years ago

denkedaniel commented 6 years ago

After calling the product buy function the purchase dialog pops out, and it requires the itunes password (sometime 2-3 times in a row), also I have the touchID set on the test device for appstore purchases but sadly the plugin never asks for touch verification.

Does anybody found the same problem in their application or I'm missing something important to implement before the purchase call?

First I use the this.iap.getProducts(['prod_01']) after that i call this.iap.buy('prod_01') .then((data)=> { console.log(data); }) .catch((err)=> { console.log(err); });

The console output seems normal. It shows the product informations as expected.

The product type is Non-Consumable.

Cordova version is 6.5.0 (I get it from terminal by entering cordova --v)

iOS version 11.2.5

lincolnthree commented 6 years ago

Also having the same issue. Not really sure what is going on. Anyone figure this out?

denkedaniel commented 6 years ago

Hi! I’ve figured it out already and solved the problem! The problem is with apple payment’s sandbox mode. If you’re code is working without any errrors (just the multiple popups and the missing touch id verification) just publish it and it will work in production mode as expected! I did it with our currency app and it’s working fine since the publish! Let me know if you need any further help!

lincolnthree commented 6 years ago

Awesome! Thanks for the reassurance @neverstop26. I'll try that :) Much appreciated.