stylesheet

2013-10-01

IABv3: sharedUserIdを使用しているとエラー

sharedUserIdを使用しているアプリでin-app billing v3を使用すると例外が発生。

同じsharedUserIdを設定したアプリAとB

アプリAのみインストールした場合: 動作OK
アプリAとBをインストールした場合: InAppBillingServiceがエラーを返す

W/Finsky(20189): [27] InAppBillingService.validatePackageName: Package name ***.****.****** does not match the Uid
E/AS(27058): Problem setting up In-app Billing: IabResult: Error checking for billing v3 support. (response: 5:Developer Error)

不具合として承認されているが、半年ほど進展なし。

https://code.google.com/p/marketbilling/issues/detail?id=90

回避策

  • IABv2を使用するよう書き換える。
  • sharedUserIdを使用しない。

お。

追記

IABv2のサポート終了。この不具合は修正されているようです。

Beginning January 2015, we will end support for the In-app Billing Version 2 API. After this date, users will no longer be able to make in-app purchases using your app until you upgrade your app to use the Version 3 API.