Wigiri Wigiri - 1 month ago 5
iOS Question

How to handle in-app payment checks

Question applies to both Play Store and App Store.

I have an App developed in Ionic with cordova-plugin-inapppurchase plugin to handle in-app payments.

Everything works but right now I have set it up so every time the App opens, I check the app/play store for the payment status.

In iOS (and I am guessing it has to do with my settings) every time the app opens, it asks me for the App Store password. I guess it could be changed in settings, but for the general user it is annoying.

Am I handling it correctly? How often or when should I check for the in-app payment status?

Answer

Well I found the answer myself: Restoring Purchased Products

Restoring purchases prompts for the user’s App Store credentials, which interrupts the flow of your app: because of this, don’t automatically restore purchases, especially not every time your app is launched.