Use this page with AI

Copy this into your coding assistant and add your request.

Read https://openiap.dev/docs/apis/android/show-alternative-billing-only-information-dialog-android and https://openiap.dev/llms.txt. Follow the reading instructions, detailed reference, and linked guides relevant to my task before making changes.
Inspect my existing project and reuse its framework and conventions. Ask me for missing product decisions. Implement the requested behavior and run the applicable checks.
Show the working result, the commands and actual test results, and any remaining limitations. Keep your explanation brief.

My request: [describe what customers should be able to do]
See an example request →

Android showAlternativeBillingOnlyInformationDialogAndroid

Shows Google's information dialog for an app that offers only its own in-app payment system. Requires Play Billing 6.1+ and a connection opened with the alternative-billing-only billing program.

Wraps BillingClient.showAlternativeBillingOnlyInformationDialog(...). Call it before each checkout attempt and continue only when the result has responseCode 0. The full flow is in Alternative Billing Only.

Signature

kt
suspend fun showAlternativeBillingOnlyInformationDialog(
    activity: Activity
): BillingResultAndroid

Returns#

Promise<BillingResultAndroid> with responseCode, optional debugMessage, and optional subResponseCode.

When the dialog fails, Godot returns response_code 6 (ERROR) with debug_message set and emits purchase_error.

Example

kt
val result = openIapStore.showAlternativeBillingOnlyInformationDialog(activity)
if (result.responseCode == 0) {
    // Create the reporting token, then open your checkout.
}