in-app purchase - restore transaction
Ok so I have been able to use the native extensions to make use of the in app purchase and got that working well, however, my app got rejected because I didn't have a way for a user to restore their purchase if they delete the app from their device and re-add it at a later date.
Here's my question though. How do I detect whether a user has actually already purchased the in-app purchase when they reinstall the app to show the restore purchase button.
Right now the way it works is that when they buy my in app purchase the app stores a variable in a SharedObject so that whenever the app loads it sees the vairable as true and reveals the feature. Once they delete the app from the device the shared object has been deleted also so there is no way for the app to know it was already purchased.
Do I just put a button on the purchase screen that says "restore purchase" that will fire the StoreKit.storeKit.restoreTransactions()event if that user had already purchased something, but return an error if they hadn't?
