6

バックグラウンド

私の iOS アプリは複数のユーザー アカウントをサポートしていますが、ユーザーは一度に 1 つのアカウントにしかログインできません。このアプリは、サブスクリプション サービス (更新可能なアプリ内購入の形での「クレジット」) も提供します。

アプリ内サブスクリプションを、それらを購入した特定のユーザー アカウントに分けておくのに問題があります。ユーザーがアカウント 1 でクレジットを購入してサインアウトし、別のユーザーが (同じデバイスで) アカウント 2 にサインインした場合SKPaymentQueueでも、アカウント 1 からの購入の更新プロセスに進みます (その結果、ロックを解除するロジックがトリガーされます)。それらのクレジット)。

質問

複数のアカウントをサポートするアプリで更新可能なアプリ内購入を処理する正しい方法は何ですか? 購入が同じデバイス上の他のアカウントに「オーバーフロー」しないようにする方法はありますか? 他に何を心に留めておくべきですか?

4

1 に答える 1

2

I'm pretty sure what you're trying to do isn't possible. In-app purchases are tied to the Apple ID that purchased them. That means that if the user is logged into an Apple ID that has purchased the subscription, you are always going to be told it is available. A single user can't purchase the same subscription multiple times. The only way would be to force an Apple ID change when they change users in your app, which I'm almost certain you can't do.

于 2012-10-18T21:28:18.683 に答える