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

Issues with the iOS version

Discussion in 'Unity IAP' started by Kapteeni-Studios, Sep 18, 2020.

  1. Kapteeni-Studios

    Kapteeni-Studios

    Joined:
    Apr 5, 2014
    Posts:
    39
    Hi,

    I'm having issues with the iOS version. When I build the game to my iPad with xCode and do a test purchase, it's not going forward and gets stuck. This is what I see in the xCode debug when the purchase gets stuck. Game keeps running but the In App Purchase is not working.

    Code (CSharp):
    1. 2020-09-17 12:02:24.671248+0300 GameEngine[902:176899] [] tcp_input [C23.1:3] flags=[R] seq=78007036, ack=0, win=0 state=CLOSED rcv_nxt=78007036, snd_una=2630167525
    2. 2020-09-17 12:02:24.671439+0300 GameEngine[902:176899] [] tcp_input [C23.1:3] flags=[R] seq=78007036, ack=0, win=0 state=CLOSED rcv_nxt=78007036, snd_una=2630167525
    3. -> applicationWillResignActive()
    4. -> applicationDidBecomeActive()
    5. -> applicationWillResignActive()
    6. 2020-09-17 12:02:32.038042+0300 GameEngine[902:176899] [] tcp_input [C24.1:3] flags=[R] seq=1353517910, ack=0, win=0 state=CLOSED rcv_nxt=1353517910, snd_una=3707176258
    7. 2020-09-17 12:02:32.038406+0300 GameEngine[902:176899] [] tcp_input [C24.1:3] flags=[R] seq=1353517910, ack=0, win=0 state=CLOSED rcv_nxt=1353517910, snd_una=3707176258
    8. -> applicationDidBecomeActive()
    • Everything works on android version and is live on Google Play. This happens only on iOS.
    • I have updated to latest Unity IAP 2.0.0 with the Unity Services window.
    • I have the latest xCode 11.7 and iPad has the latest 13.7 version.
    • I'm using Simple IAP System (Asset Store) and I have the lastest version.
    • I'm using Unity 2019.2.21f
    I have run out of ideas what to do next, since everything works OK on the Unity Editor and Google Play. I tried to enable Development Build also but got the same debug in xCode. I can't give my players new content on iOS and I'm losing retention, so it's not good.

    Any help or ideas what to do next?
     
  2. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    You will need to contact the folks from Simple IAP, we would not be able to support their product although they do use Unity IAP, they have added additional wrapper code.
     
  3. Kapteeni-Studios

    Kapteeni-Studios

    Joined:
    Apr 5, 2014
    Posts:
    39
    I did, but they couldn't help either. After I tried everything I could think of, I decided to stop. I had to stop all advertising for iOS and instead focus only on developing and advertising the game for Google Play. There was a wall that I simply could not pass.

    A month went by, and I did several releases in Google Play, then I decided to try to get it working for iOS again with the latest version. I didn't change anything for IAP. The only difference, there was a small xCode update not related to the issue. I was 110% sure it's not going to work, and to my great surprise. Everything works again. I got a new update out yesterday, and now the first IAP purchases have been made by users. I still have no clue why it was not working on iOS before. Maybe it was something on Apple's end.