question

lstipakov avatar image
lstipakov asked

IAP without Amazon Apps or SDK Tester

Hello, Is there any way to detect that neither SDK Tester or Amazon Apps are installed? I want to show proper error message for user ("make sure you have amazon apps installed"), but so far after calling registerObserver and initiateGetUserIdRequest I never got a response.
iap
10 |5000 characters needed characters left characters exceeded

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

Bipin@Amazon avatar image
Bipin@Amazon answered
IF the app is Live , you donot need SDK tester. In development period if you need show pop-up, you can do it on onSDKAvailable. Your app can implement the PurchasingObserver interface by subclassing the abstract BasePurchasingObserver to process the asynchronous callbacks triggered from the ResponseReceiver. onSdkAvailable(boolean isSandboxMode) Callback is invoked once you register your PurchasingObserver with the PurchasingManager. This isSandboxMode boolean tells whether the Purchasing Framework is running in sandbox mode with test data, or in production mode with real data. If the boolean is false, the application is receiving responses from the SDK Tester. If the boolean is true, the application is live in production.
10 |5000 characters needed characters left characters exceeded

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

lstipakov avatar image
lstipakov answered
Thanks, but it does not answer my question. Consider following scenario: 1) User has non-amazon android device 2) User installs Amazon Appstore 3) User downloads and installs my app 4) User uninstalls Amazon Appstore Now, when user taps on "Buy", my app displays progress dialog while getting userId from Amazon. Obviously, app never gets any response since Amazon Appstore does not exists on the device. So, is there any way to detect that Amazon Appstore is not available? Something like isBillingSupported in Google's In-App Billing.
10 |5000 characters needed characters left characters exceeded

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

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Hi Istipakov, Thank you for writing back. This scenario is already taken care of when you publish your application in our store. When a user uninstalls the Amazon AppStore and attempts to launch it again, they would face a popup saying that you must be logged in to Amazon AppStore to use the app. The App would close after the user acknowledges the message.
10 |5000 characters needed characters left characters exceeded

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