IAP Live App Testing Delayed Purchase Screen

I’ve successfully tested calling the IAP SDK to trigger a purchase in the sandbox environment:

  • Purchase modal shows as soon as I call PurchasingService.purchase()
  • onPurchaseResponse callback executes with success response
  • call to notifyFulfillment seems to have gone through.

However, when testing on LAT, the purchase modal doesn’t show as soon as I call PurchasingService.purchase().

After I go back to the Fire TV home dashboard (click home button on remote) and re-open my app, the purchase modal (more of a screen than a modal) shows immediately.

Why would this be the case for LAT when the purchase modal was showing immediately when testing in the sandbox environment? Are there extra steps that need to be taken to make the purchase screen surface immediately for LAT?

Below are some logs I’ve noticed in logcat:

After calling purchase():
IAP event: 4acaba96-85d1-4ae2-a715-c2cd9e47fce0 IapTimeFromStartToFinishPurchaseItemCommandInitiated
IAP event: 4acaba96-85d1-4ae2-a715-c2cd9e47fce0 IapPurchaseItemCommandInitiated
IAP event: 4acaba96-85d1-4ae2-a715-c2cd9e47fce0 IapPurchaseItemCommandSuccess
IAP event: 4acaba96-85d1-4ae2-a715-c2cd9e47fce0 IapTimeFromStartToFinishPurchaseItemCommandCompleted
IAP event: 4acaba96-85d1-4ae2-a715-c2cd9e47fce0 IapTimeFromPurchaseItemCommandToDetailDialogInitiated

After pressing home button and re-opening the app:
IAP event: 4acaba96-85d1-4ae2-a715-c2cd9e47fce0 IapInAppBillingTypeHandled
IAP event: 4acaba96-85d1-4ae2-a715-c2cd9e47fce0 IapTimeFromStartToFinishGetItemInfoInitiated
IAP event: 4acaba96-85d1-4ae2-a715-c2cd9e47fce0 IapGetAvailablePaymentMethodsCallInitiated
IAP event: 4acaba96-85d1-4ae2-a715-c2cd9e47fce0 IapTimeFromStartToFinishGetItemInfoCompleted
IAP event: 4acaba96-85d1-4ae2-a715-c2cd9e47fce0 IapTimeFromPurchaseItemCommandToSubscriptionDetailDialogCompleted
IAP event: 4acaba96-85d1-4ae2-a715-c2cd9e47fce0 IapTimeFromDetailDialogToBuyButtonInitiated
IAP event: 4acaba96-85d1-4ae2-a715-c2cd9e47fce0 IapSubscriptionFtvPurchaseV2DialogRendered
IAP event: 4acaba96-85d1-4ae2-a715-c2cd9e47fce0 IapSubscriptionGetAvailablePaymentMethodsCallCompleted
IAP event: 4acaba96-85d1-4ae2-a715-c2cd9e47fce0 IapSubscriptionFtvPurchaseV2DialogFetchPaymentMethodSuccess

Hi devjc,

Thanks for posting! The Live App Testing (LAT) mimics the live environment as close as possible, with the exception of not charging for any in-app purchases (IAP). I would suggest checking if your device has any pending software updates and then performing those updates, then ensuring you don’t have two copies of your app installed and removing the sideloaded one, and restarting the device.

If the issue persists, please login to your Developer Portal account, click Contact Us, and provide additional details: app name, extracted logs around the purchase event, the exact time in UTC you tried to call purchase(), and the SKU of the IAP item, so we could investigate this further. Thanks!