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
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

after in-app purchasing is initialized, I receive a lot of Product information(subscription products

Discussion in 'Unity IAP' started by liwenchao4413, Apr 22, 2021.

  1. liwenchao4413

    liwenchao4413

    Joined:
    Apr 15, 2021
    Posts:
    11
    Unity 2019.4.12f1 In-App Purchasing 2.1.1 iOS phone

    In the sandbox environment, on an iOS device that has already purchased a continuous subscription, if I purchase a continuous subscription product again, iOS will prompt me that I have already purchased this product. Then restart the app, after in-app purchasing is initialized, I receive a lot of Product information through

    Code (CSharp):
    1. public PurchaseProcessingResult ProcessPurchase(PurchaseEventArgs e)
    method of

    Code (CSharp):
    1. public class MyStoreListener:IStoreListener
    I want to know why there are so many product purchase information when I don’t have any operation?

    thank very much
     
  2. liwenchao4413

    liwenchao4413

    Joined:
    Apr 15, 2021
    Posts:
    11
    after in-app purchasing is initialized, I receive a lot of Product information(subscription products and Non-consumable). It likes Resume purchase operation.
     
  3. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    I have heard of this behavior previously, I will test.
     
  4. liwenchao4413

    liwenchao4413

    Joined:
    Apr 15, 2021
    Posts:
    11
    thank you very much
     
  5. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    Yes, I have reproduced, I will let engineering know.
     
  6. liwenchao4413

    liwenchao4413

    Joined:
    Apr 15, 2021
    Posts:
    11
  7. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    Sorry for the delay. Upon further investigation, this looks to be intended behavior by Apple. We are a passthrough service for the Apple StoreKit API, and this API returns this information that we then pass along. For a good UI design (and to avoid this issue), you would want to disable the Purchase button if the user already has an active subscription for the product.