problem with the store Itunes

to upload the app to iTunes, it generates an error me by some method return.

De Apple

Missing restore mechanism

We found that your app offers In-App Purchase(s) that can be restored but does not include a “Restore Purchases" feature to allow users to restore the previously purchased In-App Purchase(s), as specified in the “Restoring Purchase Products” section of the In-App Purchase Programming Guide

“Users restore transactions to maintain access to content they’ve already purchased. For example, when they upgrade to a new phone, they don’t lose all of the items they purchased on the old phone. Include some mechanism in your app to let the user restore their purchases, such as a Restore Purchases button.”

To restore previously purchased In-App Purchase products, it would be appropriate to provide a “Restore” button and initiate the restore process when the “Restore” button is tapped by the user.

inquiring found that it was something related to this method but I do not know if this (store.restore()

)

You need to include a button of some sort that allows users to restore previous purchases.  This is used when a user buys something in your app, deletes the app later at some point, then reinstalls the app.  The button will allow them to restore previous purchases.   Yes, you will need to use the store.restore( ) method

You need to include a button of some sort that allows users to restore previous purchases.  This is used when a user buys something in your app, deletes the app later at some point, then reinstalls the app.  The button will allow them to restore previous purchases.   Yes, you will need to use the store.restore( ) method