Search Unity

Unity Codeless IAP IOS Calls the purchase complete method on startup

Discussion in 'Unity IAP' started by Tajayexe, Aug 10, 2019.

  1. Tajayexe

    Tajayexe

    Joined:
    Feb 14, 2016
    Posts:
    4
    So i'm kind of new to this whole IAP thing and I am using code less api. On IPhone I have implemented code less IAPand when my purchase goes through successful the first time when i restart my app it calls the on purchase success method again. Is this supposed to happen ?

    It is a non-consumable purchase and I have set to consume on purchase enabled.
    I currently do not have a restore button in the test.
     
  2. Plummers

    Plummers

    Joined:
    Oct 29, 2015
    Posts:
    35
    Can confirm this same issue, just had it occur yesterday. Seems to restore even after I have reinstalled the app and logged out of all accounts on my iPhone.
     
  3. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    Seems like you both are seeing restore occur automatically on iOS which is not expected. We will test here to confirm.
     
  4. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
  5. Tajayexe

    Tajayexe

    Joined:
    Feb 14, 2016
    Posts:
    4
    @JeffDUnity3D I can get that to you later today. However, do you think not having a restore button might be the cause?
     
  6. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    I don't believe Apple would allow you to publish your app without a Restore button