I’m implementing in app purchase.
Where a user buys a game-like money(a currency a user can use to buy other products with).
(Many iphone games do this)
Many of these games use the tied apple id(the apple id that a user used to buy the app itself with) for in app purchase.
My questions are.
-
How do these games know the email address of the tied apple id? (I thought it’s a reason for rejection of app submission)
“17.2 Apps that require users to share personal information, such as email address and date of birth, in order to function will be rejected” from App store review guidlines -
After a user buy their currency or an actual product with the currency, they will have to store the purchase information on their server so that the same user can possess the same currency/products in other devices.
So they will have to store some form of id(the email I guess) on their server. Isn’t this a privacy issue? -
I’d like to avoid forcing users to create separate id just for my app. That’s the whole point of the above questions.
But I also see many apps(with in app purchase capability), and wonder what features drive the app’s developer to take a burden of maintainning their own user account information.
You might already have found the answer. If you don’t then the solution is :
SKPaymentQueue has a method called ‘restoreCompletedTransactions’ which retrieves all the previous purchases for the current Apple account. You do not need any user-id for the app to track this. Checking the restored transactions, you can determine which product is already bought by the user (currently logged in Apple account) . That way you can provide products to multiple devices of the same Apple account without any trouble (which Apple wants to do also).
Cheers,
Tushar