Skip to main content
New Participant
July 4, 2023

IAP LaunchCheckoutFlow Dialog closing immediately on launch

Hi,
We have been trying to integrate Add-ons into our app. However, on invoking the 

IAP.LaunchCheckoutFlow(sku).OnComplete((message) => { ... });

method, we encountered an issue where the dialog appeared, displayed a loading indicator, and then closed immediately. Upon checking the logcat, we found no abnormal logs. However, we did notice a message containing the grant time, expiration time, and add-on details. Also, The OnComplete callback is never fired and no errors are thrown.

To verify this information, we called the S2S API, but the response did not contain the add-on. We are uncertain as to why the dialog is closing immediately and would greatly appreciate any assistance.

Thank you in advance.

    This topic has been closed for replies.

    5 replies

    Up and Coming
    August 29, 2023

    Hi, same issue here with UE, did you found a fix for this issue? 

    Participant
    September 17, 2023

    I have this same exact issue.

    Up and Coming
    September 17, 2023

    Mine fixed by itself, But here are some of the things I made
    - Either because my IAP was free and I made another one but this time I made it Paid, I think if its Free then it will auto purchase it at first without asking you, and then the pop up never opense since you own it.
    - Or the issue was related Oculus server not being ready, make sure to give it a few hours or a day after you publish your IAP, make sure to publish it from your oculus dash.
    - The last reason I can think is your own profile, try to download another game with IAP and see if it works.
    If none of the above worked, then probably outdated Oculus SDK issue. 

    Participant
    September 17, 2023

    Thank you! I was able to fix the issue by doing:

    IAP.ConsumePurchase(skuToPurchase).OnComplete(callback);
    after the checkoutflow.