Requesting products

Hi,


Is it safe to request the products immediately when the app starts?


It seems like you ought to be able to do this so you can have a product list ready as soon as the user hits a paywall.


However, on my test phone, which isn't logged in to the app store, I get a password prompt immediately when the app starts. This is troubling. Obviously I don't want a real user to get a password prompt just because they ran my app.


What's the best practice here?

You test to see if there is a receipt and if there is a receipt you determine what has been purchased. If there is no receipt you wait. If the user requests something that requires an IAP then you tell the user they must first restore their purchases. The same is true for a subscription that might be expired.

Requesting products
 
 
Q