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. Dismiss Notice

Crash when returning from PlayStore purchasing interface

Discussion in 'Unity IAP' started by GreenMatch, Dec 1, 2020.

  1. GreenMatch

    GreenMatch

    Joined:
    Nov 3, 2016
    Posts:
    6
    Hello.
    Using Unity IAP in my android game I'm able to successfully launch Google Play Store's purchasing interface (where the actual transaction is handled). However, when I test the option "Credit card approves after a few minutes" or "Credit card declines after a few minutes" I get a crash when the interface closes (returning to the game).

    adb logcat does not display any error messages (or any messages at all) when this happens, OnApplicationPause() and OnApplicationFocus() aren't even able to send debug messages so error presumably happens very early in the return process. This also makes it near impossible for me to debug...

    Does anyone have any idea what could cause the crash?
    I would be very thankful for any help.

    I'm using Unity 2018.3.2f1, IAP 2.2.2
     
  2. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    We would need to test this scenario. Can you share a screenshot where you enter this setting?
     
  3. GreenMatch

    GreenMatch

    Joined:
    Nov 3, 2016
    Posts:
    6
    Sure, you mean something like this?

    Selection of payment method (test options)
    pay method selection.jpg

    Interface after selection has been made
    play store interface.jpg

    After pressing the "1-tap buy" button
    confirmation.jpg

    The interface then slides down, the game freezes for less than a second, then crashes.
     
    JeffDUnity3D likes this.