Closed dominic-simplan closed 7 months ago
This is probably a naming issue: receiptsVerified
means all validation calls have been resolved (either with unverified
or verified
), it lets your app know that there's no more receipt validation calls in progress. Obviously here all validation calls have failed (with calls to unverified
).
What are you trying to achieve with it?
I think in v11 of this plugin we used the store.isReady method to dermine if a user is online / has internet access and then either showed the in-app-purchase options or a message that the user is not online. If I remember correctly the store.isReady method would only return true if the device is online. Now in v13 it seems to be independent of the online state of the device.
Anyway, probably the better way to do it is to check the online state of the device independent of the store.isReady state.
I think we can close this issue. Thanks for yor reply and for clarifying how receiptsVerified is supposted to work!
Observed behavior
I disconnect my device from the internet and start the app. The receiptsVerified() callback gets called:
Expected behavior
My expectation would be that the receiptsVerified callback is not executed if the receipts couldn't be verified.
System Info
Output of
cordova info
: Cordova Packages:Project Installed Platforms:
Project Installed Plugins:
Environment: