question

Adrian Manolache avatar image
Adrian Manolache asked

IAP Implementation returns COMMAND_SERVICE_NOT_INSTALLED

Hi,

I'm getting COMMAND_SERVICE_NOT_INSTALLED errors when trying to connect to the Appstore SDK in sandbox mode from a Samsung Device:


  1. D/Kiwi: CommandServiceClient: Binding Service!!!
  2. D/Kiwi: CommandServiceClient: Created intent with action com.amazon.venezia.CommandService
  3. E/Kiwi: CommandServiceClient: CommandServiceException happened, retriesLeft=4
  4. com.amazon.a.a.n.a.a.c: COMMAND_SERVICE_NOT_INSTALLED: null: null
  5. at com.amazon.a.a.n.a.d.e(CommandServiceClient.java:257)
  6. at com.amazon.a.a.n.a.d.a(CommandServiceClient.java:181)
  7. at com.amazon.a.a.n.a.a.a(AbstractCommandTask.java:124)
  8. at com.amazon.a.a.n.b.b$1.run(SimpleTaskPipeline.java:179)
  9. at android.os.Handler.handleCallback(Handler.java:938)
  10. at android.os.Handler.dispatchMessage(Handler.java:99)
  11. at android.os.Looper.loop(Looper.java:246)
  12. at android.os.HandlerThread.run(HandlerThread.java:67)
  13. D/Kiwi: CommandServiceClient: Sleeping for 400 ms


I'm also trying to get the user data but the request never returns on Sandbox.


  1. D/d: Appstore SDK - Sandbox Mode: sendGetUserDataRequest
  2. D/d: Appstore SDK - Sandbox Mode: sendPurchaseUpdatesRequest/sendGetUserData first:a3c3a5b3-d45d-4a0d-9ba7-6bb7c3075bba
  3. D/d: Appstore SDK - Sandbox Mode: sendItemDataRequest

When running against the production servers I do get a response but it's status code is failed:

  1. D/AmazonIAPStore: onUserDataResponse status=FAILED (com.amazon.device.iap.model.UserDataResponse@bc5c0d5, requestId: "4768930a-9fa6-443e-8ae9-db256b339cc3", requestStatus: "FAILED", userData: "null")

What am I missing here ? I do see the .json uploaded in the Amazon App Tester app, included the pem file for app store authentication and for peace of mind I've disabled obfuscation and optimization in my pro guard rules file:

-dontoptimize
-dontobfuscate
-printconfiguration fullconfig.txt


What am I missing ?

iapamazon appstoresdk
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Technimo avatar image
Technimo answered

Not clear from the documentation but adding this in the manifest fixed my InApp sandbox testing issues:

<queries>
    <package android:name="com.amazon.venezia" />
    <package android:name="com.amazon.sdktestclient" />
</queries>

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.