Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Adding a iOS restore purchase button in unity app, does nothing

Discussion in 'Unity Gaming Services General Discussion' started by itierney, Nov 8, 2022.

  1. itierney

    itierney

    Joined:
    Jan 28, 2019
    Posts:
    27
    I added a "restore purchase" button for my iOS unity app. This is required by apple. According to unity docs, you add the button and set its type to "restore"

    When I test this on an iphone TestFlight, nothing happens, no apple login screen..nothing.

    I'm expecting it to just restore from the IOS store records.

    When I look at the console with a debug build I get the following output on pressing the button from an iphone" "2022-11-05 19:31:46.901354+0000 PocketBuddha[67035:5564595] UnityIAP: Restore transactions

    2022-11-05 19:31:46.901607+0000 PocketBuddha[67035:5564595] UnityIAP: RestorePurchase

    2022-11-05 19:31:47.922061+0000 PocketBuddha[67035:5564595] UnityIAP: PaymentQueueRestoreCompletedTransactionsFinished"

    Here is the set up in the unity editor:

    Screenshot 2022-11-07 at 17.30.32.png