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

[Solved] Restore Purchases on tvOS?

Discussion in 'Unity IAP' started by numandina, Aug 15, 2018.

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

    numandina

    Joined:
    Feb 22, 2013
    Posts:
    11
    Hi.

    Unity IAP works great on iOS, but when building on tvOS the purchasing works but not restoring purchases. I get:

    RestorePurchases FAIL. Not supported on this platform. Current = tvOS

    The reason I'm asking is because Apple rejected my app from the Apple TV App Store because I didn't implement restoring purchases on the platform. Does this mean I have to write my own implementation? Or is there a checkbox to enable in Unity?

    Thanks.
     
  2. numandina

    numandina

    Joined:
    Feb 22, 2013
    Posts:
    11
    Solution: I was using an old version of the Purchaser.cs script which only considers IPhonePlayer and OSXPlayer to be apple platforms. Restore works fine after I added the tvOS platform. My bad.
     
Thread Status:
Not open for further replies.