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