1

私のアプリには、非消費型の個別のアプリ内購入と、割引価格で他のすべての IAP を含む「一括」IAP があります。したがって、ユーザーが IAP を購入できるようにする前に、ユーザーが購入済みの他の IAP を知る必要があります。この情報を取得する唯一の方法は、restoreCompletedTransactions を呼び出すことです。しかし、Apple は、アプリ内購入の確認ダイアログを表示する前に restoreCompletedTransactions を呼び出すことは許可されていないと言って、私のアプリを拒否しました。私の知る限り、購入しようとするとこのダイアログが表示されます。だから私は立ち往生しています。誰にもアイデアはありますか?ありがとう!!

4

2 に答える 2

2

購入が行われると、アプリは何をしますか? 追加のコンテンツが機能するように、フラグを 1 つまたは 2 つ設定しますか? ロックされていないものを確認できない場合は、購入したものがわかります。

そうでない場合は、購入時に値をどこかに保存するだけです。

于 2012-09-05T20:07:38.113 に答える
0

I thing you couldnt make yourself clear about what you are trying to do. As I am trying to do the same thing let me explain.

When someone purchases a non-consumable IAP you give them some privileges.

In your case discounts, in my case some extra points.

When you dont know that it is the first purchase of the non-consumable IAP you will always give discounts when user press the buy button. You cant store it in NSUserDefaults or keychain because it wont help if user changes device.

So if user buys the IAP from a device, he gets discounts on that device, its cool but he can do this at every device he logs in with the same account. In order to prevent this you need to know if it is the first purchase or not.

Some can say that you should let him to get discounts. I dont know about what he is thinking but in my case I am giving the points for only once because he can make many points with just changing devices and that would be unfair...

Btw I came up with a solution for this but it is not very useful. You can make a gamecenter leaderboard called Pro Users and when someone buys your IAP you can give 100 points to that leaderboard. After that you can check the users score to see if he bought it already or not ...

于 2013-03-21T15:06:13.500 に答える