Search Unity

[Solved] iOS11 Promoting Your In-App Purchases feature

Discussion in 'Unity IAP' started by theolovesyou, Nov 14, 2017.

Thread Status:
Not open for further replies.
  1. theolovesyou

    theolovesyou

    Joined:
    May 22, 2017
    Posts:
    5
    Hi,
    I was wondering which callback is actually called
    when i click the promote item in app store.

    Is "ProcessPurchase" callback called?

    What should i do if i need to send payload to store with "InitiatePurchase"?
    I usually call InitiatePurchase with two params(Product, Payload) in normal situation.

    Thanks
     
  2. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    I will look into this, and keep you updated.
     
  3. theolovesyou

    theolovesyou

    Joined:
    May 22, 2017
    Posts:
    5
    Thanks!
     
  4. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    If you initiate a transaction outside the Unity application, no callback will be generated or received. To initiate a purchase, the products would be set up within app store prior. Does this address your question?
     
  5. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    Upon additional discussion here, ProcessPurchase will be called if you are using the new iOS Promotion feature that was added in IAP 1.13. So if you start a purchase on the App Store page, it will open your app and the normal IAP process will happen and ProcessPurchase will indeed be called. The instructions for supporting this feature are in the changelog:

    https://forum.unity.com/threads/unity-iap-store-package-1-14-1-is-now-available.415517/#post-3179338

    Regarding the payload, that is only used for Google Play and not the Apple App Store.
     
Thread Status:
Not open for further replies.