Search Unity

Unity IAP does not support iPad

Discussion in 'Unity IAP' started by amirkhavari99, Jan 21, 2020.

  1. amirkhavari99

    amirkhavari99

    Joined:
    Oct 15, 2018
    Posts:
    2
    Hello,

    I don't know where I should tell Unity developers that the IAP package has problems with iPads.
    In the code which does the purchasing, there is a function to restore purchases manually in the Apple devices, the problem is that it has an 'if' which lets through iPhones and OSX devices, and not iPads.
    That's the reason IAP will never get restored on an iPad.

    The solution is either supporting the iPad in the 'RuntimePlatform' enum and adding also iPad to that 'if', or removing the 'if' and placing a '#if UNITY_IOS' in its place.

    It took us 3 days to find out the problem is this IAP not supporting iPad.
    I hope it saves some time around the world.
    Best regards.
     
  2. tessellation

    tessellation

    Joined:
    Aug 11, 2015
    Posts:
    390
  3. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    Can you elaborate? Which #if statement is failing the check?