Reputation: 13085
I have seen some things about Apple rejecting your app if you don't offer a "restore purchases" option. I have never seen this in an app, but granted I don't do much in-app purchasing myself. My question is, how are you guys implementing this? Not the code to do it, but where do you put the button? Do you just put a "Restore In-App Purchases" button in some random place in your app? Or do you wait for them to make a purchase and then somehow check if they've made purchases and offer them the option to restore everything?
Any examples of this in other apps is appreciated too.
Upvotes: 1
Views: 3120
Reputation: 68
I implement it like that. In the AppDelegate call isIAPRestoreNeeded when app starts AND get active:
if ([[NSUserDefaults standardUserDefaults] boolForKey:@"SettingsKeyIAPRestoreNeeded"]) {
[[NSUserDefaults standardUserDefaults] setBool:NO forKey:@"SettingsKeyIAPRestoreNeeded"];
// IAP restore
[[SKPaymentQueue defaultQueue] restoreCompletedTransactions];
}
The corresponding settings entry must be of course in the Settings bundle of the app. In my opinion the best solution, because it doesn't destroy the UI and UX of the app.
Upvotes: 1
Reputation: 11
there is an example at :
http://itunes.com/apps/snowboardlingo
(A free App snowboard Quiz/reference with In App Purchase)
The restore button is on the App 'Information page' (the i symbol). Apple Documents say that users will 'hunt around' for this button..
Upvotes: 0
Reputation: 131
How about show it in the Settings app? Maybe you'll want it on the page where you sell your content in a Navigation Bar as a button? Or if you have categorized settings in-app, make a new category pertaining to your IAP and add a restore button there?
Upvotes: 0
Reputation: 10398
You should show it at all times, as the main point of it is if you delete and reinstall your app, you lose your in app purchases. So you press the button to get them back. I'd put it on the same view as the In App Purchases themselves. Just a tiny button or line of text should be fine.
Upvotes: 0
Reputation: 11855
Most apps I have seen with this put it in the accounts section of app settings. Since it is usually related to purchases made on your account within the app, I feel this would be the best place and most likely place users of your app would check, if such a feature was ever needed.
Upvotes: 0
Reputation: 442
Adobe Photoshop Express has a section in settings (in the app) where you can buy items or restore purchases. You can download it and check it out for free.
Upvotes: 0