Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question IAP Initialize issue when i was play long time

Discussion in 'Unity IAP' started by Kwonsoonwoo, Sep 19, 2022.

  1. Kwonsoonwoo

    Kwonsoonwoo

    Joined:
    Apr 13, 2022
    Posts:
    4
    Hello i have a problem IAP Initialize issue when i was play long time

    my unity iap was succeeded initalize normally.

    but when i was play very long time(almost 12hour), UnityPurchasing.Initialize was no response.

    somebody can help me?
     
  2. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    What platform are you playing on, is this on your Android phone? Are you able to reproduce?
     
  3. Kwonsoonwoo

    Kwonsoonwoo

    Joined:
    Apr 13, 2022
    Posts:
    4
    Hi. i was played android with NOX or LDPlayer

    In Android Device was always played well.

    Only emulator has problem
     
  4. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    Unity IAP is not supported on emulators.
     
  5. Kwonsoonwoo

    Kwonsoonwoo

    Joined:
    Apr 13, 2022
    Posts:
    4
    No acutually it working. 'Nox player' and 'LD player' is same with android.

    it work normaly but when i was play long time it doesn't work
     
  6. Kwonsoonwoo

    Kwonsoonwoo

    Joined:
    Apr 13, 2022
    Posts:
    4
  7. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    I understand that, but Unity IAP doesn't support emulators. So you are able to make Google Play purchases with your credit card when the game starts on an emulator? Also, generally you want to initialize IAP at the very start of your game, not after 12 hours. Please compare your code to the Sample IAP Project here https://forum.unity.com/threads/sample-iap-project.529555/#post-8432501
     
  8. thanhtuntt2345

    thanhtuntt2345

    Joined:
    Feb 5, 2023
    Posts:
    1
    Last edited: Feb 16, 2023